复制项目与多个filter

我怎样才能使用复制多个filter值?

例如,如果我只指定1个值来过滤(* .jpg)

Copy-Item -Path Y:\TEST -Recurse -Filter *.jpg -Destination D:\Users\MS5253\Desktop\Lots 

这创build了一个文件夹(D:\ Users \ MS5253 \ Desktop \ Lots \ TEST),其中只包含jpg文件

但我也想过滤XML文件,我试过这个:

 Copy-Item -Path Y:\TEST -Recurse -Filter *.jpg,*.xml -Destination D:\Users\MS5253\Desktop\Lots 

这给我一个错误。

和这: Copy-Item -Path Y:\TEST -Recurse -include "*.jpg","*.xml" -Destination D:\Users\MS5253\Desktop\Lots

它不工作…

感谢您的帮助,我正在使用Windows 7与Powershell v4。

如果你想把所有的jpg和xml文件放到一个文件夹中,你可以使用Get-ChildItem -Include

 Get-ChildItem -Include *.jpg,*.xml -Recurse | ForEach-Object { Copy-Item -Path $_.FullName -Destination D:\Users\MS5253\Desktop\Lots }