title: Get file paths relative to a script's folder for use with Copy-Item
body: <p>I am trying to run the command below to copy a file from the script directory. Since this script directory will be different on each PC how can I tell the -Path to use the file where the script is being run?</p>
  
  <p>Copy-Item : Cannot find path 'C:\Users\user\test.certs' because it does not exist.</p>
  
  <pre><code>Copy-Item -Path .\test.certs -Destination "$env:UserProfile + '\AppData\LocalLow\Sun\Java\Deployment\security'"
  </code></pre>