You can run a query from a command line entered in either:
using a command like this:
where queryname is the path and name of your query.
When you execute a query in this way, you can choose to run it in batch mode or as a normal query, with dialog boxes prompting you to insert any variables, just as if the query was run from the Query window.
If you choose to run a query in batch mode, you will not be prompted to insert any variable (i.e. promptable) values that may have been defined for the query. If promptable values are required, you can include them in the command or in a file.