$host.ui.RawUI.WindowTitle = "My Useful Script is Running " + $MyInvocation.MyCommand.Path;
Source:
https://www.tutorialspoint.com/how-to-get-the-path-of-the-currently-executing-script-in-powershell
$host.ui.RawUI.WindowTitle = "My Useful Script is Running " + $MyInvocation.MyCommand.Path;
Source:
https://www.tutorialspoint.com/how-to-get-the-path-of-the-currently-executing-script-in-powershell