Scan black or white lists in O365 for Domains,Emails, or IPAddresses

See if a Domain, Email, or IPAddress is black or white listed in Exchange Online.
Multiple values are allowed, and the IPAddresses will scan through subnets.
The Get-IPRange function is from Technet.
The script is still in development. Please report bugs.
For more please go to https://baswijdenes.com/portfolio/isitlisted
UPDATE: 
It now includes inboxrules when you add -inboxrules to the cmdlet.

Examples

PowerShell
Edit|Remove
.\Isitlisted.ps1 -domains contoso.com -ListedAs blacklisted 
.\Isitlisted.ps1 -domains "contoso.com","Baswijdenes.com" -ListedAs Whitelisted 
.\Isitlisted.ps1 -Emails Mike.Tyson@contoso.com -ListedAs Whitelisted 
.\Isitlisted.ps1 -Emails "Mike.Tyson@contoso.com","Info@Baswijdenes.com" -ListedAs blacklisted 
.\Isitlisted.ps1 -IPS "192.168.100.1" -ListedAs blacklisted 
.\Isitlisted.ps1 -IPS "192.168.100.1","10.0.0.2" -ListedAs Whitelisted 
.\Isitlisted.ps1 -domains "contoso.com","Baswijdenes.com" -Emails "Mike.Tyson@contoso.com","Info@Baswijdenes.com" -IPS "192.168.100.1","10.0.0.2" -ListedAs blacklisted 
.\Isitlisted.ps1 -domains "contoso.com","Baswijdenes.com" -Inboxrules