The Exchange PowerShell script (Set-ReceiveConnectorIpAddress) to add or remove remote IP address ranges to/from Exchange Server 2013+ receive connectors received an update.
The script now checks if the required PowerShell modules are available before failing to load the modules.
Get the most recent version at Github or TechNet Gallery
As always, enjoy Exchange Server On-Premises.