CmdID / PowerShell / Cmdlets / Disconnect
Disconnect-RDUser
Disconnects a user from a session that runs on a remote server. Windows Server PowerShell reference
From the Windows Server PowerShell reference 3 parameters Its page in the reference
Parameters
-ForceForces the command to run without asking for user confirmation.-HostServerSpecifies the name of the server that hosts the session.-UnifiedSessionIDProvides the unique ID for the session.