I have an environmental monitoring device that can send emails when it detects issues like heat, flood, etc in a room. It can send email notifications or SNMP traps as it detects these issues.
Is it possible for Powershell to get the SNMP traps or emails and use them as triggers to fire off a shutdown batch file? Or even have the nodes listed in the Powershell script shutdown the nodes gracefully (without the need for a batch file)?
I just started learning Powershell so I don't have the advanced knowledge to do this yet. If someone can help or point me into the right direction, that will be great.