title: Powershell does not recognize path when asked to move files
body: <p>I have a weird issue with windows powershell where a script I wrote to move files from one directory to another suddenly stopped working after months of flawless functionality. It is still a total mystery to me why it does not work anymore. </p>
  
  <p>Below you will find (hopefully) all the information you need to help me out.</p>
  
  <p>Help is much appreciated!</p>
  
  <p>Best regards</p>
  
  <p>Philip</p>
  
  <p><a href="https://i.stack.imgur.com/oJuPS.png" rel="nofollow noreferrer">THE SCRIPT</a></p>
  
  <p>Error output is something like:</p>
  
  <p><strong>move: Could not find a part of the path.</strong></p>
  
  <p><strong>CategoryInfo     : WriteError:  [Move-Item], DirectoryNotFoundException</strong></p>
  
  <p><strong>FullyQualifiedErrorId : MoveFileInfoItemIOError, Microsoft.Powershell.Commands.MoveItemCommand</strong></p>