You don't show your script but I think that you said it yourself. If you do not provide a reference to the specific data table with the covariates, then the current data table will be used. So make the table with the covariates current before running the script. If that approach is inconvenient or if the covariates are always found in the same data table, another approach can be taken. It would involve changing the way the data table and data columns are referenced in the script.
Good afternoon, Mark - thanks for the quick reply. Hope you and your family are well.
I'm old and keep forgetting to do stuff. OK, I've always forgotten frustratingly often to do things like change the table focus, but now I have an excuse.
Because of this, though, I like to automate as much as I can. Automating the table focus, as well as maybe making sure the correct lines in the covariates table and the "Enforce use of selected covariate rows" checkbox is marked through script, rather than depending on my squirrel-beset concentration, would be a big help.