title: Powershell copy matching items
body: <p>I wanted to make a script which there is a backup folder that has numbered folders and there are numbered zip files and for these zip files find the numbered folder and copy it there and expand it.</p>
  <pre><code>$R = &quot;136&quot; ; &quot;287&quot;
  gci &quot;\\rossfsscan\scanning\ejbackup\&quot; | where-object {$_.name -match &quot;$R&quot;}
  </code></pre>
  <p>But i didn't know how to move the file to the matched directory.</p>