Script finds mx-records for entered domain. Then finds all ns-records for each finded mx-record.
-acceptedDomain
This optional parameter allows point out domain. Default value is "google.com".
-DNSServer
This optional parameter allows specify DNS-server. Default value is 8.8.8.8.
.\Check-MX.ps1 -acceptedDomain "o365lab.pro"
Finds mx-records for domain o365lab.pro.