title: powerhsell remote wmi query failing
body: <p>The following query asks for the credential password but then fails (I've also tried putting -credential between -computer and -filter:</p>
  
  <pre><code>$running = Get-WMIObject Win32_Process -computer servname -filter "Name =‘process.exe’” -credential domain\administrator
  foreach ($objItem in $running){
  write-host $objitem.Path
  }
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>PS C:\Users\ME&gt; $running = Get-WMIObject Win32_Process -compute
  r servername -filter "Name = 'process.exe'" -credential domain\administrator
  Get-WmiObject : Invalid query
  At line:1 char:25
  + $running = Get-WMIObject &lt;&lt;&lt;&lt;  Win32_Process -computer 172.20.10.114 -filter
  "Name = 'process.exe'" -credential domain\administrator
      + CategoryInfo          : InvalidOperation: (:) [Get-WmiObject], Managemen
     tException
      + FullyQualifiedErrorId : GetWMIManagementException,Microsoft.PowerShell.C
     ommands.GetWmiObjectCommand
  
  PS C:\Users\ME&gt; foreach ($objItem in $running){
  &gt;&gt; write-host $objitem.Path
  &gt;&gt; }
  &gt;&gt; 
  </code></pre>
  
  <p>Thanks, Charlotte.</p>