protected static function spawnProcess(string $cmd, array $spec, ?array & $pipes, ?string $dir = null, ?array $env = null, bool $bypassShell = false)
    {
        return @\proc_open($cmd, $spec, $pipes, $dir, $env, $bypassShell ? [
            'bypass_shell' => true
        ] : []);
    }