XenApp provides an SDK based on Microsoft Windows PowerShell Version 3.0.
Using Citrix cmdlets and snap-ins, you can perform the same tasks as you would with the management console (Citrix Studio). Moreover, you can also write PowerShell scripts that retrieve performance or health data from your Citrix infrastructure to integrate with your external monitoring tool.
For example, I used PowerShell scripts to monitor XenApp installations with Nagios, a widely-used open source monitoring tool.
The PowerShell SDK is compatible only with XenDesktop 5.0 or later. Snap-in names end with V1 or V2; they denote the following versions:
In Chapter ...