The Redfish specification supports event mechanism through which the target redfish devices can send events from different components in the system to an event listener. This project provides an event listener that is create in native PowerShell.
https://github.com/rchaganti/PSRedfishEventListener
https://www.powershellmagazine.com/2018/11/13/redfish-event-listener-in-powershell/