title: Check file exists in source before copying
body: <p>I have list of files, I am trying to copy to another location. </p>
  
  <pre><code>$files = @("abc.ps1", "def.ps1")
  $scriptFiles | Copy-Item -Destination "destinationlocation" -Force
  </code></pre>
  
  <p>So I get an error when file abc.ps1 is not availalbe, Is there a way to <code>Test-Path</code> by avoiding to write a loop and write in single line?</p>