Is there a way to automatize connecting to MSGraph?
I have found a way to automatize connecting to AzureAD by using next two lines of code, which works perfectly without any pop-up.
$UPN = whoami /upn
Connect-AzureAD -AccountId $UPN
Is there something similar for Connect-MSGraph?
All my google searches on this topic have resulted in automatizing connecting to MgGraph which is not what I need.
Any help would be much appreciated.