If we need to know, which PowerShell host version is being used, we can use (Get-Host).name
in PowerShell:
PS C:\Windows> (get-host).name ConsoleHost
If we need to know, which PowerShell host version is being used, we can use (Get-Host).name
in PowerShell:
PS C:\Windows> (get-host).name ConsoleHost