title: How to use the Copy-Item cmdlet correctly to copy piped files
body: <p>I am building a small script which should copy all <code>.zip</code> files to a special folder called  <code>F:\tempzip</code>.</p>
  
  <p>I tried it with <a href="https://technet.microsoft.com/en-us/library/hh849793.aspx" rel="nofollow noreferrer">Copy-Item</a> cmdlet, but I didn't manage to do it. The script should copy all files from this folder (recursively) which are ".zip".</p>
  
  <p>This is the part of the script I am talking about:</p>
  
  <pre><code>get-childitem F:\Work\xxx\xxx\xxx -recurse `
     | where {$_.extension -eq ".zip"}       `
     | copy-item F:\tempzip
  </code></pre>
  
  <p>What do I have to add?</p>