split command and args

using cmd we would still pass the whole command string and then the args after it.
Example: if cmd was "node app.js", we would try to run "node app.js app.js"