Hi, this script helps to generate alert when external IP changes.
Please refer this wiki guide to implement the procedure as monitoring.
https://wiki.comodo.com/frontend/web/topic/how-to-use-custom-script-procedure-monitoring
Note: Run as custom monitoring script