The provided scripts in this Git repository are outdated and throwing error when trying to use with latest Microsoft.Identity.Client modules. Please update these scripts with latest MSAL libraries...
Error which we are getting with this scripts: New-Object : Exception calling ".ctor" with "2" argument(s): "See https://aka.ms/msal-net-3-breaking-changes" At C:\AAD-Auth-MSAL-PowerShell\MSAL-Auth-PS.ps1:23 char:8 $app = New-Object Microsoft.Identity.Client.PublicClientApplication($ ... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CategoryInfo : InvalidOperation: (:) [New-Object], MethodInvocationException FullyQualifiedErrorId : ConstructorInvokedThrowException,Microsoft.PowerShell.Commands.NewObjectCommand