The PowerShell_RunCommand and Action_RunPowerShell Knowledge Scripts make a number of callback and helper functions available to the PowerShell commands or scripts being run.
These functions are implemented in a file called Agent.ps1, which is installed in the NetIQ\AppManager\bin\PowerShell\Scripts\Library folder on agent computers. The PowerShell_RunCommand.ps1 script automatically loads the Agent.ps1 file.
This appendix explains how to use four key PowerShell functions:
Agent_CreateEvent, which lets you create an AppManager event.
Agent_CreateData, which lets you create an AppManager data point.
Agent_BuildDetailTableXML, which lets you build an XML string defining a detail or event message formatted as a table.
Agent_BuildDynamicLegendXML, which lets you build an XML string defining a Analysis Center-compatible datastream legend.
For details on the additional functions not listed here, review the Agent.ps1 file.