We all love PoweShell. The one of this AWESOME feature it , it's lovely integration with .Net.
If you are looking for a single line of code to convert a hostname to IP. You can use the
Just provide the name in parantheses and get the IP information about the host.
Try it and see it's magic. ;o)