After working with the XenDesktop SDK through a PowerShell window, you might want to build a script to execute the cmdlets. Scripts are more powerful than the command-line interface because you can have multiple cmdlets in a script and can execute them by running the script. If you are a third-party vendor integrating with XenDesktop, scripts are very important for you.
You can create scripts by reverse engineering; that is, using the ones that are used by XenDesktop.
To create scripts, perform the following steps: