Trying to change a script from basic authentication to Exchange Online V2 Module to utilise Modern Auth.
Install-Module PowershellGet -Force Set-ExecutionPoli