MobileIron highly recommends you test your shell scripts before running them on macOS devices to ensure their robustness and quality. Run your script locally, and correct any errors that result.