'Run the WMI query and return the data.'

def Run(self, args):

    query = args.query
    base_object = (args.base_object or 'winmgmts:\\root\\cimv2')
    if (not query.upper().startswith('SELECT    ')):
        raise RuntimeError('Only    SELECT    WMI    queries    allowed.')
    for response_dict in RunWMIQuery(query, baseobj=base_object):
        self.SendReply(response_dict)
