title: How to use Get-ChildItem with filter array in Powershell?
body: <p>This script to remove some docs doesn't work:</p>
  
  <pre><code>$includeExtensions = @("*.doc", "*.docx")
  get-childitem -Path "C:\somedir" -Include $includeExtensions | remove-item
  </code></pre>
  
  <p>Why not? And how do you specify an array of extensions which can then be passed as an argument?</p>