title: Powershell: IOException try/catch isn't working
body: <p>I have a PS script that kicks off every 5 minutes to check for newly dropped folders and move them.  Problem is that sometimes items within the folder are still being written to, in which case the script errors with:</p>
  
  <blockquote>
    <p>Move-Item : The process cannot access the file because it is being used by another process. [Move-Item], IOException + FullyQualifiedErrorId : MoveDirectoryItemIOError,Microsoft.PowerShell.Commands.MoveItemCommand</p>
  </blockquote>
  
  <p>I've tried the following try/catch block but it still errors on the same "Move-Item" line.  Any thoughts to what I'm doing wrong here?</p>
  
  <pre><code>          try {
             Move-Item -Force "$fileString" $fileStringFixed
            }
            catch [System.IO.IOException] {
             return
            }
  </code></pre>
  
  <p>Thank you.</p>