Unfortunately Citrix changed the output of the device id to a GUID, this makes all device related functions fail
Invoke-XMDeviceSelectiveWipe : Cannot process argument transformation on parameter 'id'. Cannot convert value "EC32A132-2991-47E1-AA0B-CE8537F97674" to type "System.Int32[]".