title: Calling WMI methods via a WQL query
body: <p>I'd like to call a static method via WMI using WQL (basically the equivalent of the "Execute Method" button in wbemtest.exe), but I'm having trouble finding syntax examples.</p>
  
  <p>I have a custom WMI provider named "HelloWmi" with the following method:</p>
  
  <pre><code>[ManagementTask]
  public static string getVersion()
  {
      return "1.4.2";
  }
  </code></pre>
  
  <p>In wbemtest I can click the "Execute Method" button, enter "HelloWmi" as the object path, and I'm presented with a combobox of methods to execute. Similarly, I can run the following in windows:</p>
  
  <pre><code>C:\Windows\system32&gt;wmic /namespace:\\root\Test path HelloWmi call getVersion
  Executing (HelloWmi)-&gt;getVersion()
  Method execution successful.
  Out Parameters:
  instance of __PARAMETERS
  {
      ReturnValue = "1.4.2";
  };
  </code></pre>
  
  <p>However, for this project I'm not using the standard WMIC tool for windows, but accessing WMI remotely via the WMIC package for ubuntu, which doesn't seem to support the aliases that WMIC for windows has.</p>
  
  <p>Is there any way to call WMI methods using just a WQL query?</p>