title: Capture line number of exception in dot sourced file
body: <p>So I am running a powershell script within my script, whenever it fails the line number of the exception is the line number of where I call the dot sourced file in my parent script.</p>
  
  <p>I tried to catch the exception, but that didn't contain the full exception, only the actual exception text (no line numbers or categories).</p>
  
  <p>Has anyone solved this? I've been searching high and low and haven't found anything about this. </p>