This isn't much info that you have provided.
In general, the same rules apply as when calling QUICK from the
prompt:
You need to have a valid/authenticated connection to the target tree,
and you may specify tree/context on the command line
Good luck
Wolfgang