title: Search folder for filename and copy item to another location
body: <p>Hello in our environment we have the following structure:</p>
  
  <pre><code>\\server\share1\Subfolder1\Subfolder3\123456.jpg
  \\server\share1\Subfolder2\Subfolder4\456789.jpg
  \\server\share2\123456.tif
  \\server\share2\456789.tif
  </code></pre>
  
  <p>What I want to do is the following: Check if the item exists in share2 as tif. If so then I want to copy the tif file to the same location as the jpg (share1).</p>
  
  <p>Via <code>Get-ChildItem -Recurse -File</code> I can get all the files, but I don't know how to compare the filename to share2 and copy the tif file to the same location as the jpg.</p>
  
  <p>Thanks in advance!</p>