You can configure an agent to use a shell other than the default by editing parameters in the BFAgent.conf file.
shell C:\MKSTools\mksnt\ksh.exe -L -c \"%s\"
The %s in this command line is replaced by the step command when the system sends a command to the server. In this case, the quotes are escaped by backslashes.