13,724 questions
Connect-MGGraph, from the official Graph SDK for PowerShell module is what you should use. Connect-MsGraph is likely from a different module. The Intune module has a similar cmdlet, but as you can expect, said module is used for Intune management only, not for general Graph queries.