Modern versions (i.e. 2.35.1) of the Microsoft.Graph.Authentication module include Invoke-GraphRequest as an alias for Invoke-MgGraphRequest. Since aliases take priority over function names, this causes the Invoke-GraphRequest function defined in MSGraph.psm1 to not be used and all functionality to break. The error is "Invoke-MgGraphRequest: A parameter cannot be found that matches parameter name 'Url'."
This can be resolved by renaming the Invoke-GraphRequest function to something else and updating the various calls to match.
Modern versions (i.e. 2.35.1) of the Microsoft.Graph.Authentication module include Invoke-GraphRequest as an alias for Invoke-MgGraphRequest. Since aliases take priority over function names, this causes the Invoke-GraphRequest function defined in MSGraph.psm1 to not be used and all functionality to break. The error is "Invoke-MgGraphRequest: A parameter cannot be found that matches parameter name 'Url'."
This can be resolved by renaming the Invoke-GraphRequest function to something else and updating the various calls to match.