Bind alarms to a power table

Is there a way to bind alarms to a power table? How to load the alarms to a dataset in script first? Thanks in advance.