CFY-1848 expose a similar API to script plugin with process/env,args,cwd,command_prefix
CFY-1848 add return value