    private function __generateCommandFile()
    {
        $filename = $this->__scripts_dir . 'tmp/' . $this->__generateRandomFileName() . '.command';
        $tmpFile = new File($filename, true, 0644);
        $tmpFile->write(json_encode($this->__request_object));
        $tmpFile->close();
        return $filename;
    }