The script is available for download from http://gallery.technet.microsoft.com/How-to-retrieve-the-IP-5781fc88. You can also use Microsoft Script Browser for Windows PowerShell ISE to download the sample with one button click from within your scripting environment.
This PowerShell script shows how to get the IP address from virtual machines.
IT admins usually maintain multiple virtual machines. Getting the IP addresses of multiple virtual machines is not convenient.Using this script can easily to maintain and check virtual machines' info.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery