def exec_query(cmd, fields):
 if (conf.prog.powershell is None):
  return _exec_query_vbs(cmd, fields)
 return _exec_query_ps(cmd, fields)

def exec_query ( cmd , fields ) : if ( conf . prog . powershell is None ) : return _exec_query_vbs ( cmd , fields ) return _exec_query_ps ( cmd , fields )
execute a system query using powershell if it is available .