CB-6377 Handle spaces in paths for cmd related scripts

0. as discussed elsewhere the slice() efforts on process.platform are pointless

1. for .bat, .cmd, and .js/.vbs, we want to use the command interpreter, which means we want to use its special quoting facilities (/s) -- this forces it by checking for !<.exe>