I have a scenario where an error XML file will appear in a specific directory on an Agent monitored machine.

For example, when an alarm is triggered in the application I am using, it creates a new xml file defining that error.

Example:  C:\Sofwareprogram\Alarms\Active\thisnewerror.xml

I would like Kaseya to report the contents of the latest file "thisnewerror.xml"

While I am not new to Kaseya, I am new to creating advanced scripts, so any assistance would be greatly appreciated.!!