Yes, anything that you can run as a command query window can be run from a remote SPT call. You'll just have to make sure the connection can execute with the necessary database rights.
>I need to control it from my robot application which handles all scheduling tasks. Can this be done?