There are plenty of examples and discussions out on the internet.
https://community.spiceworks.com/how_to/123434-run-powershell-script-on-windows-event
I could not able to see the events in the server, logs are overwritten very fast.
In that case your logs are too small, or you have some other problem.