As mentioned, the XenDesktop SDK contains PowerShell snap-ins for XenDesktop that are installed automatically when the controller or Studio are installed.
To run a XenDesktop cmdlet, perform the following steps:
PS c:\>prompt, type
Answer "Y" to the prompt.
asnp Citrix.*, as shown in the following screenshot: ...