Copy-PWMailMessagesFromExchange V1.23.11.0 - error 401 (unauthorized)

I'm getting 401 (unauthorized) error when copying email to PW folder.

I'm using below code. 

new-pwlogin -usegui -verbose

$doc = Get-PWDocumentsBySearch -FolderPath "Outook_Data\Anis_Emails" -DocumentName 'E-mail-Mapping_Ani.xlsx'
$Secure_String_Pwd = ConvertTo-SecureString "xxxxxxxx" -AsPlainText -Force
Copy-PWMailMessagesFromExchange -MappingFile $doc -MailUser 'name.surname@known-domain.com' -MailPassword $Secure_String_Pwd -ExchangeURL "">outlook.office365.com/.../" -HoursOld 24 -Verbose

and the error code is

WARNING: Error: The request failed. The remote server returned an error: (401) Unauthorized.
at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.GetEwsHttpWebResponse(IEwsHttpWebRequest request)

at Microsoft.Exchange.WebServices.Data.ServiceRequestBase.ValidateAndEmitRequest(IEwsHttpWebRequest& reques
t)
at Microsoft.Exchange.WebServices.Data.MultiResponseServiceRequest`1.Execute()
at Microsoft.Exchange.WebServices.Data.ExchangeService.FindItems(FolderId parentFolderId, SearchFilter sear
chFilter, ViewBase view)
at PWPS_DAB.ExchangeInterface.CheckMail(String sExchangeWebServiceURL, String sMailUser, String sDecryptedP
assword, Boolean bUseDefaultCredentials, Boolean bSaveMessages, Boolean bSaveAttachments, Boolean bSaveMessage
Text, Boolean bDeleteMessages, Boolean bTraceMode, Int32 iTimeSpanHours, Int32 iMaxMessages, DataTable dtSubje
ctKeysAndDestinations, PSCmdlet cmdlet)

My organization has setup MFA and it's active. Does it affecting the exchange server logging?

What I'm missing here?

Any suggestion would be helpful.