Running Command In Alerts

Hi,
I have two problems which are allmost the same
Is there a way I can copy the content of an alert to a third party application.
For example:
when I receive an alert about ping failure it will automatically open notepad and
write in it the content of the alert f.e “ping on server XXXX has failed”

The second thing is:
running Execute locally with " ‘Application’ - {text\parameters}"
thanks for the help!

There is “run on server” and “run on client” built-in notifications

How can I run an application and copy the Alert output to it this is what i meant
There is an Image Attached