Disconnect-SharePoint Cmdlet
Closes a connection to Microsoft SharePoint.
Syntax
Disconnect-SharePoint [parameters]
Remarks
The Disconnect-SharePoint cmdlet is used to close a connection that was opened by the Connect-SharePoint cmdlet.
Disconnect-SharePoint -Connection $connection