Run Powershell in UiPath by Oauth 2.0 to perform actions in Exchange online

Hi Everyone,

As we all know, Basic oauth 2.0 authentication is soon disable by Microsoft. Some of the projects i am using it to run in PowerShell. Now i want to use Oauth 2.0 to replace the basic auth. I extracted Client ID, Application id, Secret. Next

How we integrate it with the existing code?, i am getting error while passing it.

Convert Mailbox to commonshared mailbox in exchange online