Everything seems to be much easy and less afford in PowerShell compared to all days. most of the information is needed can be gathered with simple PS instead of using complicated scripts here is how we would accomplish getting IP Addresses list on our relay list Exchange 2010.
We will use Get-ReceiveConnector cmdlet.
Get-ReceiveConnector | Select-Object -Property 'Identity','RemoteIPRanges' |FL
You can plug this into PowerGUI or run it from EMS as shown below
Working with PowerGUI will teach you real fast how to use PowerShell , here is the video to get you started.