private function composeProcess(string $command): Process
    {
        if ($this->process === null) {
            $this->process = new Process([$command]);
        }

        $this->process->inheritEnvironmentVariables();
        $this->process->setTimeout($this->timeout);
        $this->process->setCommandLine($command);

        return $this->process;
    }