I've been reviewing Microsoft Graph documentation on how to to get an access token for the Microsoft Graph API, but I can't figure out how to accomplish authentication in the same way that the Cmdlet "Connect-MSGraph" or Connect-AzureAD or Connect-MSOnline does.
Those Cmdlets take credentials then authenticate to Office365/Azure with them. As long as the user has the right access level, the other Cmdlets within the module will work.
I looked at using the Microsoft.Graph PowerShell module (Connect-MgGraph), but I have to do this process of copy and pasting a URL from the console to my browser then copying and pasting a code from the console into the page in the browser and and so on whenever I want to use Connect-MgGraph. That seems like a ridiculously inconvenient thing to do every time a tech in my department runs this script.