ok,
Here is the best part you'll need:
$rs = [System.Net.Dns]::GetHostAddresses($i)|select-object IPAddressToString -expandproperty IPAddressToString
now, I wrote this and tested it using powershell v2 ctp3, and it should work on the Lower versions but have not tested it.
with that line, you will have just an IP address in the var, $rs. from there you can do other things and fancy stuff, all aglore.
the select statement cleans up the output of: [System.Net.Dns]::GetHostAddresses($i) otherwise the output is not really useable as the output is formated in its own colums, with outher propertys. the select-object strips everything out except the IP address.
-Nex6