Please explore the PowerCLI cmdlets to achieve this, you can refer to Managing vSphere Alarms with PowerCLI | VMware PowerCLI Blog - VMware Blogs for more information.
You can use Get-AlarmDefination & Get-AlarmAction cmdlets to get the details about the alarm and the action.