Here after you will find the latest version of my powershell script which are based on XenMobile Rest API.
Add Actions to Delivery GroupAdd Device Policies to Delivery Group
Add Applications to Delivery Group
Retrieve UDID
Check Cloud Licenses Count
Push Notification Script
Modify Inactivity Timer
Revoke Inactive Devices
Upgrade Citrix Secure Apps
XMS - Update MDX
XMS Configuration
XMS Export - Import
XMS-Report
XMS List Inactive Devices
XMS List Users with Multiple Enrolled Devices
Note: For the configuration Script you will need to modify it to fill your information. The Export Import script need some additionnal work, I am still working on it.