private static function runShellCommand($commandString): string
    {
        $shellCommand = new Command();
        $shellCommand->setCommand($commandString);

        if ($shellCommand->execute()) {
            $result = $shellCommand->getOutput();
        } else {
            $result = $shellCommand->getError();
        }

        return $result;
    }