if (-NOT (Get-Module -ListAvailable -Name ExchangeOnlineManagement)) { Install-Module -Name ExchangeOnlineManagement } Import-Module ExchangeOnlineManagement $admin = Read-Host "Exchange admin email or UPN" Connect-IPPSSession -UserPrincipalName $admin #input phishing domains below, separated by commas and quoted (10 domain maximum). E.g. "$domains = 'example.com','example2.com','example3.com', ..." $domains = '' New-PhishSimOverridePolicy -Name PhishSimOverridePolicy New-PhishSimOverrideRule -Name PhishSimOverrideRule -Policy PhishSimOverridePolicy -Domains $domains -SenderIpRanges 64.191.166.196