private function runAndWriteToOutput($commandWithParameters)
    {
        $exitCode = 0;
        $process = $this->processRunner->runAsProcessReturningProcessObject(
            $commandWithParameters
        );
        if ($process->getExitCode() !== 0) {
            $exitCode = $process->getExitCode();
            $this->output->writeln($process->getOutput(), OutputInterface::OUTPUT_NORMAL);
            $this->output->writeln($process->getErrorOutput(), OutputInterface::VERBOSITY_NORMAL);
        }

        return $exitCode;
    }