CmdID / PowerShell / Cmdlets / Get
Get-WebItemState
Gets the run-time state of a site or an application pool. Windows Server PowerShell reference
From the Windows Server PowerShell reference 2 parameters Its page in the reference
Parameters
-PSPathSpecifies the path to the application pool or site.-ProtocolSpecifies the protocol binding for which information is returned, such as HTTP or FTP.