Search notes:

PowerShell: the automatic variable $host

The type of $host is System.Management.Automation.Internal.Host.InternalHost:
PS C:\> $host.GetType().FullName
System.Management.Automation.Internal.Host.InternalHost
$host refers to the same object that also get-host returns.

Change the window's title

$host.ui.rawUI.windowTitle = 'Foo bar baz'

See also

$host.ui and $host.ui.rawUI
Other automatic variables
PowerShell host

Index