Set the PowerShell Window Title


  • Share on Pinterest
$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