.SYNOPSIS This Poweshell script make a REST API call to an AirWatch server. This particular script is used to pull device information based on serial numbers pulled from a file. If you need to build your own script, concentrate on the Get-BasicUserForAuth function. This creates the Base64 authentication string. Also look at the Build-Headers function as this is a requirement for the REST call.
.DESCRIPTION To understand the underlying call check https://