Problem was we run in a 'no path' environment and cmd.exe couldn't be found, fixed this to use the comspec environment variable to locate cmd.exe