Code:
$objSysInfo = CreateObject("ADSystemInfo")
$objUser=getobject("LDAP://" +  $objSysInfo.UserName)


When you are only interested in the current user, this is just a different way/shortcut to get the DN, rather than using the TranslateName UDF (nametranslate object) . Truthfully, you could use the Translatename exclusively if you wanted to.

Its creating two objects, one with the ADSystemInfo, and then another when you use the LDAP provider with .username. This gives you all the properties of the current user, including the proxyaddresses.

Clear as mud?