title: How can I get the current PowerShell executing file?
body: <p>Note: PowerShell 1.0<br>
  I'd like to get the current executing PowerShell file name. That is, if I start my session like this:  </p>
  
  <pre><code>powershell.exe .\myfile.ps1
  </code></pre>
  
  <p>I'd like to get the string <strong>".\myfile.ps1"</strong> (or something like that). <strong>EDIT</strong>: <strong>"myfile.ps1"</strong> is preferable.<br>
  Any ideas?</p>