CmdID / PowerShell / Cmdlets / Publish
Publish-WmsDesktop
Shares a desktop and optionally allows remote control of the desktop. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-Confirm, -cfPrompts you for confirmation before running the cmdlet.-MaxViewersSpecifies the maximum number of clients that can view the published desktop.-RemoteControlIndicates that the published desktop can be remotely controlled.-Server, -ComputerNameSpecifies the fully qualified host name of the MultiPoint Server that is the target of the command.-SessionIdSpecifies the session ID of the desktop to publish.-WhatIf, -wiShows what would happen if the cmdlet runs.