protected function executeEngineCommand($command, $service = null, $options = [], $quiet = false, $localhost = false)
    {
        if ($command instanceof CommandBuilder) {
            $command = $command->build();
        }
        $engine = $this->getEngineInstance();

        if ($engine instanceof DockerEngineType && !$localhost) {
            $results = $engine->execRaw($command, $service, $options, $quiet);
        } else {
            $results = $this->_exec($command);
        }

        $this->validateTaskResult($results);

        return $results;
    }