title: Set up PowerShell Script for Automatic Execution
body: <p>I have a few lines of PowerShell code that I would like to use as an automated script. The way I would like it to be able to work is to be able to call it using one of the following options:</p>
  
  <ol>
  <li>One command line that opens PowerShell, executes script and closes PowerShell (this would be used for a global build-routine)</li>
  <li>A file that I can double-click to run the above (I would use this method when manually testing components of my build process)</li>
  </ol>
  
  <p>I have been going through PowerShell documentation online, and although I can find lots of scripts, I have been unable to find instructions on how to do what I need. Thanks for the help.</p>