Line 149 in apiMDM_remove.txt has some syntax problems.
if [ $majorVer -gt 10 ] || ([ $majorVer eq 10 ] && [ $majorMinor -gt 15 ]);then
should be
if [[ $majorVer -gt 10 || ( $majorVer -eq 10 && $majorMinor -gt 15 ) ]];then
Other than that, it is working.
Originally posted by @jfiliceatcsumb in #20