title: Powershell - filtering WMIObject processes by more than one name
body: <p>I am trying to get a list of running processes and filter by two process names - can any one tell me how to get this working?</p>
  
  <p>I've so far got it working and filtering out one process name:</p>
  
  <pre><code>$rn = Get-WMIObject Win32_Process -computer servername `
    -credential mydomain\administrator -filter "Name='program1.exe'" |
    select -expand path
  $lst = Get-Content “C:\path\path2\List.txt”
  Compare-Object $lst $rn
  </code></pre>
  
  <p>What I want it to do is filter two process names but nothing I've tried works. Any ideas?</p>