And if you do want to use the MFCOM objec on citrix you can use...

Code:
$ctxsession = CreateObject("MetaFrameCOM.MetaFrameSession")
$ctxsession.Initialize(6, "", "", -1)
$ClientIP = $ctxsession.ClientAddress



Not sure if it was ever fixed...But there used to be some problem with Non-admin users running MFCOM scripting. So it may work for admins and not regular users, which would suck, but you'll just have to try it.