['pipe', 'r'], 1 => STDOUT, 2 => STDERR ], $pipes, null, $environment, ['bypass_shell' => true]); if (!is_resource($process)) { fwrite(STDERR, "could not start starbonding-cli.exe\n"); exit(1); } fwrite($pipes[0], $password . "\r\n"); $password = ''; fclose($pipes[0]); exit(proc_close($process));