title: How to run powershell script that doesn't have ps1 extension
body: <p>I am using ops tool Rundeck that allows for execution of arbitrary scripts. I enter the script text in the web application widget and upon execution, Rundeck saves it to temporary file and calls interpreter. The problem is that the temporary file doesn't have ps1 extension and Powershell refuses to execute it.</p>
  
  <p>Is there any way to set up Powershell to ignore extension ?</p>
  
  <p>=== EDIT 2018 ===</p>
  
  <p>Rundeck now has an option for this within a job definition.</p>