title: Set current location to match the Drive letter same as the running script's drive
body: <p>In PowerShell, how to dynamically read the Drive (letter) where running Script resides then set that Drive as current location so that:</p>
  
  <ol>
  <li>all relative paths written in the script would use (and create files/folder-structure) in that drive, also, </li>
  <li>after script-execution finishes, the PS-Command-Prompt would also show that Drive (where the running script resides):</li>
  </ol>
  
  <p>For example, before execution, if the current location is C: drive, i.e. the PowerShell command prompt is showing "C:\" and my script resides in "D:\ps_scripts\test.ps1", all relative paths in the script should use (and create files/folder) in the D: drive.</p>
  
  <p>Basically I'm developing an installer-script that should install the app in the Drive where the script is stored (i.e. it has to be "Relative" as opposed to "Absolute/Fixed" drive).</p>
  
  <p>TIA</p>