Run this script as CUSTOM MONITORING
Refer the below link to run a script as custom monitoring;
https://wiki.comodo.com/frontend/web/topic/how-to-use-custom-script-procedure-monitoring
This script will set the users to change the password on next logon if it exceeds the threshold value.