title: How to use Powershell Where-Object like an IN statement
body: <p>I have the following code which works: </p>
  
  <pre><code>foreach ($db in $svr.Databases | 
           where-object {
           $_.name -eq "testDB" 
           -or $_.name -eq "master"
           -or $_.name -eq "model"
           -or $_.name -eq "msdb" } )
  {
    write-output $db.name
  }
  </code></pre>
  
  <p>Is a cleaner way to do this?</p>
  
  <p>Something like: </p>
  
  <pre><code>foreach ($db in $svr.Databases | 
           where-object {$_.name -in "testDB, master, model, msdb" } )    
  {
    write-output $db.name
  }
  </code></pre>