code: public function run(\de\codenamephp\platform\cli\command\iCommand $command) {
      if($this->getDirectory() !== '' && is_dir($this->getDirectory())) {
        $currentDir = getcwd();
        chdir($this->getDirectory());
      }
  
      $returnValue = $this->getActualPassthru()->run($command);
  
      if(isset($currentDir)) {
        chdir($currentDir);
      }
  
      return $returnValue;
    }
docs: Checks if a directory is set and if the directory exists. If so, it changes into the given directory, executes the command, the switches back to the provious directory.
  
  If no directory is set or the set directory does not exist, the command is executed without a directory switch
  
  @param CommandInterface $command
  @return int|mixed The value that is returned by the process