you should break the command into args then run this test on the args.  Then below prepend these args to the arg list passed to the process spawn.