Can you use WhoIs IP from Powershell?

I am a newbie to Powershell and I am trying to determine if it is possible to pass a list of website domain names (ie.www.powershell.org) from a txt file to a powershell app and have it look up the IP address and web posting agency for that website (As you might do a an whois IP website) and put the results in a file. I can do it manually but I have about 10,000 websites to look up. Any suggestions?

Patty

https://gallery.technet.microsoft.com/WHOIS-PowerShell-Function-ed69fde6