$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. $host.ui.rawUI.windowTitle = 'Foo bar baz'