This script to remove some docs doesn't work:
$includeExtensions = @("*.doc", "*.docx")
get-childitem -Path "C:\somedir" -Include $includeExtensions | remove-item
Why not? And how do you specify an array of extensions which can then be passed as an argument?