For various reasons, you need to change the title of the PowerShell console. Like the title to describe the script. For example, System Information or Service Information.
To change the PowerShell Console Title use the “WindowsTitle” property in RawUI. It is just a temporary change. When you close the console and open it again, the title will be set to the default.
$host.UI.RawUI.WindowTitle = "System Information"
Now the title of the PowerShell console is changed to “System Information”.
You can also supply variable value to this parameter.
$Title = "System Information" $host.UI.RawUI.WindowTitle = $Title