A.0 Using PowerShell Callback and Helper Functions

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:

For details on the additional functions not listed here, review the Agent.ps1 file.