title: How to get line number with error inside trap in powershell?
body: <p>I use trap to write errors to file, and want write line number where error ocured.</p>
  
  <pre><code>$_.Exception.StackTrace is not answer.
  </code></pre>
  
  <p>Where I can get line number of error? Maybe some predefined variable?</p>