title: Executing powershell command under cmd and INFO: Could not find files for the given pattern(s)
body: <p>I am trying to execute the following powershell commands from <code>CMD</code>, for example:</p>
  
  <pre><code>powershell Get-WmiObject Win32_PnPSignedDriver 
  
  powershell Get-WmiObject Win32_PnPSignedDriver &gt; test.txt 
  </code></pre>
  
  <p>which both work correctly.</p>
  
  <p>But when I do a query, for example:</p>
  
  <pre><code>powershell (Get-WmiObject Win32_PnPSignedDriver | where {$_.location -like "*PCI bus 0, device 22, function 0*"}).DeviceName
  </code></pre>
  
  <p>I am getting this message the cause of which I can not pin down:</p>
  
  <blockquote>
    <p>INFO: Could not find files for the given pattern(s)</p>
  </blockquote>