public function buildCommand($targetPath, $command, array $arguments = [])
    {
        return 'cd ' . $targetPath . ' && FLOW_CONTEXT=' . $this->getContext() .
            ' ./' . $this->getFlowScriptName() . ' ' . $this->getCommandPackageKey($command) . ':' . $command . ' '
            . implode(' ', array_map('escapeshellarg', $arguments));
    }