CmdID / PowerShell / Cmdlets / Get
Get-NetFirewallHyperVPort
Retrieves Hyper-V firewall ports from the target computer. Windows Server PowerShell reference
From the Windows Server PowerShell reference 4 parameters Its page in the reference
Parameters
-AllSpecifies that all Hyper-V firewall ports should be retrieved.-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.