CmdID / PowerShell / Cmdlets / Export
Export-RDPersonalSessionDesktopAssignment
Exports the current map of personal session desktops to users. Windows Server PowerShell reference
From the Windows Server PowerShell reference 3 parameters Its page in the reference
Parameters
-CollectionNameSpecifies the name of a personal session desktop collection.-ConnectionBrokerSpecifies the Remote Desktop Connection Broker (RD Connection Broker) server for a remote desktop deployment.-path