public function beforeExecution(BeforeShellCommandExecutionEvent $event)
    {
        // Get the command the user entered.
        $cmd = $event->getCommand();

        // Replace " with '.
        $cmd = str_replace('"', '\'', $cmd);

        $event->setCommand($cmd);
    }