CmdID

CmdID / PowerShell / Cmdlets / Get

Get-PSHostProcessInfo

Gets process information about the PowerShell host. PowerShell reference

From the PowerShell reference 3 parameters

Opens CmdID with your command, read as PowerShell. It is read in your browser and sent nowhere.

What it does

from the PowerShell reference, CC BY 4.0

Gets process information about the PowerShell host. The Get-PSHostProcessInfo cmdlet gets information about PowerShell host processes running on the local computer. Beginning in PowerShell 6.2, this cmdlet is supported on non-Windows platforms.

Get-PSHostProcessInfo [[-Name] <String[]>] [<CommonParameters>]
Get-PSHostProcessInfo [-Process] <Process[]> [<CommonParameters>]
Get-PSHostProcessInfo [-Id] <Int32[]> [<CommonParameters>]

1: Get a list of PowerShell hosts running on the system

Get-PSHostProcessInfoIdentify

2: Get PowerShell host information for a specific process

Get-PSHostProcessInfo -Id 14676Identify

Its page in the reference: Get-PSHostProcessInfo.

Parameters

3 in the PowerShell reference
-IdSpecifies a process by the process ID. To get a process ID, run the Get-Process cmdlet.
-NameSpecifies a process by the process name. To get a process name, run the Get-Process cmdlet.
-ProcessSpecifies a process by the process object. The simplest way to use this parameter is to save the results of a Get-Process command that returns process that you want to enter in a variable, and then specify the variable as the value of this parameter.