I can’t seem to find it again but I recall seeing info that “in memory” commands such as dir, time and others do not work when shelling out using cmd.exe. It needs to be an “on-disk” command to work. I remember doing this a year a so ago and found it quite odd.
Keep in mind too that no path will be set (if memory serves) so you’ll need to address that in some way. Particularly for .net stuff which undoubtedly will need 100 different DLLs to do Hello World. 
You may also want to use the /d switch.
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services