Proceso.childprocess._handle.onexit

const bashOut = spawn(`bash ${script} ${param}`); //Error

const bashOut = spawn('bash', [script, param]); //Works
Cheerful Corncrake