How add bulk domains to allow sender domain list in Exchange Online using powershell

Use below pwershell with a csv file with column name “AllowedSenderDomains”

Import-Csv “C:\temp\AllowedDomain.csv” | foreach {Set-HostedContentFilterPolicy -Identity Default -AllowedSenderDomains @{add=$_.AllowedSenderDomains}}