I have tried to use event-handler, but somehow the service it self kept failling, even though the script was successfully and correctly executed.
Here are the screenshots of event-handler setting, the error log, and the script.
Here's the log:
{F3883879}
Script:
{F3883878}
Log of the script
{F3883877}
configuration of event-handler
{F3883883}