    private function __add_query($cmd)
    {
        unset($this->__default_filters['returnFormat']);
        $body = json_encode($this->__default_filters);
        $bodyFilename = $this->__generateSetupFile($body);
        $this->__request_object['body'] = $bodyFilename;
        $this->__request_object['level'] = strtolower($this->__scope) . 's';
        $setup = json_encode($this->__setup);
        $setupFilename = $this->__generateSetupFile($setup);
        $this->__request_object['setup'] = $setupFilename;
        $this->__request_object['misp_url'] = $this->__url;
        $commandFile = $this->__generateCommandFile();
        $results = shell_exec($cmd . ' --query_data ' . $commandFile);
        unlink($commandFile);
        unlink($bodyFilename);
        unlink($setupFilename);
        return $results;
    }