Some shell scripts must run in a specific working directory. To achieve this, you can add a cd command to the working directory before executing the shell script.
The default working folder ($SCHEDULER_DATA) is the one containing the 'config', 'jobs', etc. folders, so on a Win-7 installation with default settings, this is:
where 'scheduler-id' is the ID of the JobScheduler.
It is also possible to configure this as an extra file with just the cd command and add this file to the script with an include. This is helpful when you attempt to move a job from test to production without changing the configuration but with another working directory on the production site.