CmdID / PowerShell / Cmdlets / Disconnect
Disconnect-MgGraph
Once you're signed in, you'll remain signed in until you invoke Disconnect-MgGraph. Microsoft Graph PowerShell reference
From the Microsoft Graph PowerShell reference 1 parameter Its page in the reference
Parameters
-SignOutFromBrokerAlso removes cached accounts from the Windows broker (WAM).