'Using Task Scheduler to run Python when I get a Windows Notification

I'm trying to run a script every time I get a Windows Action Center notification. I think Task Scheduler would allow me to do this relatively easily, but I'm unsure of what Log, Source, and Event ID I would need to use.

I found one called Microsoft-Windows-UserPnp/ActionCenter but I can't get it to work.

Thanks in advance!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source