const bashOut = spawn(`bash ${script} ${param}`); //Error const bashOut = spawn('bash', [script, param]); //Works