
LuisC.55687 (Customer) asked a question.
We are using the following command to establish the connection to Office 365 in an unattended PS script:
Connect-MsolService -credential $Credentials
Once we federate the domain within Okta how can we keep this task running unattended. Does anyone know if there is a new PS module that can accomplish this using modern authentication in an unattended PS script?

Use default domain (onmicrosoft.com) credentials to do this because default domain will not be federated to okta.