CmdID / PowerShell / Cmdlets / Get
Get-RDVirtualDesktopIdleCount
Gets the number of idle virtual desktops on hosts. Windows Server PowerShell reference
From the Windows Server PowerShell reference 3 parameters Its page in the reference
Parameters
-BatchSizeSpecifies the batch size.-ConnectionBrokerSpecifies the Remote Desktop Connection Broker (RD Connection Broker) server for a remote desktop deployment.-HostServerSpecifies an array of names of the servers that host the session.