CmdID / PowerShell / Cmdlets / Get
Get-RDVirtualDesktop
Gets a list of virtual desktops in the remote desktop deployment. Windows Server PowerShell reference
From the Windows Server PowerShell reference 2 parameters Its page in the reference
Parameters
-CollectionNameSpecifies an array of names of personal virtual desktop collections.-ConnectionBrokerSpecifies the Remote Desktop Connection Broker (RD Connection Broker) server for a remote desktop deployment.