get-host
returns the same object that also the automatic variable $host
refers to. PS C:\> get-host Name : ConsoleHost Version : 5.1.17763.134 InstanceId : c5b6e84b-4f84-4b83-8521-f49a41517b1c UI : System.Management.Automation.Internal.Host.InternalHostUserInterface CurrentCulture : en-US CurrentUICulture : en-US PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy DebuggerEnabled : True IsRunspacePushed : False Runspace : System.Management.Automation.Runspaces.LocalRunspace