title: Copy files with certain extension created within last half an hour with powershell
body: <p>I'm trying to copy files (.zip) that has been created in the last half an hour and using the below script for that but for some reason all the zip files in the source directory get copied over. Can you please help me in correcting it?  </p>
  
  <pre><code>copy-item C:\ABC\\*.zip -filter (Get-ChildItem | Where{$_.CreationTime -ge (Get-Date).AddMinutes(-30)}) -destination C:\
  </code></pre>