When attempting to use the $context.O365ImportModule cmdlet to leverage any modules that support Modern Authentication, the following errors can be seen in the Workflow run history and verbose logging within Active Roles:
Exception calling "O365ImportModule" with "1" argument(s): "[O365PowerShellScriptExecution::ConnectExchangeOnlineWithModernAuth]:Exception in Trying to connect to ConnectExchangeOnlineWithModernAuth please check login details System.NullReferenceException: Object reference not set to an instance of an object.
at ActiveRoles.Service.ScriptHost.O365PowerShellScriptExecution.ConnectExchangeOnlineWithModernAuth()" ---> System.InvalidOperationException: [O365PowerShellScriptExecution::ConnectExchangeOnlineWithModernAuth]:Exception in Trying to connect to ConnectExchangeOnlineWithModernAuth please check login details System.NullReferenceException: Object reference not set to an instance of an object.