The web address in this line dose not work it needs change to " $tokenEndpoint = "https://login.microsoftonline.com/$tenantId/oauth2/v2.0/token"" the Oauth2 is missing the "U" https://github.com/stevecapacity/IntunePowershell/blame/9f1e3bd4818d1790cbb532b316088fca8397f238/Autopilot Helper Scripts/autoAutopilot.ps1#L6
The web address in this line dose not work it needs change to " $tokenEndpoint = "https://login.microsoftonline.com/$tenantId/oauth2/v2.0/token""
the Oauth2 is missing the "U"
https://github.com/stevecapacity/IntunePowershell/blame/9f1e3bd4818d1790cbb532b316088fca8397f238/Autopilot Helper Scripts/autoAutopilot.ps1#L6