I would like to add a perl script that I open a popup on alarm. The script is ready but I do not know where and how to add it. Can anyone help me?

----------------------------------------------
ITALIAN TRANSLATION:
Salve a tutti,
Vorrei aggiungere uno script in perl che mi apra un popup in caso di allarme. Lo script è pronto ma non so dove e come aggiungerlo. Qualcuno può aiutarmi?
