I'm trying the following:
$Result = Invoke-RestMethod "https://graph.microsoft.com/v1.0/groups?$top=1"
But the ?$top=1 part just doesn't work. I know it should, because when testing in Microsoft Graph explorer, it does!..
So WTH am I doing wrong?!
$Result = Invoke-RestMethod 'https://graph.microsoft.com/v1.0/groups?$top=1', seehelp about_quoting_rules