script to check an icann domain registry for available .com

I have very basic PS knowledge, but what I’d like to do is take a csv file that has two columns: Color and DomainName, and run a search against a domain register somewhere and pull info whether the .com is available or not. Thanks!


You can use Import-CSV to import the CSV file as a collection of objects, having Color and DomainName properties. From there, it’s up to you to figure out how to do the query. I imagine Invoke-WebRequest could be of some help, but it depends entirely on what you’re actually sending the query to.