---
title: Creating a shell script for macOS
slug: device-management-apple/creating-a-shell-script-for-macos
createdAt: 2026-10-06T07:47:38.099Z
---

You can create any shell script you want for execution on macOS devices, as long as the script can run within a shell script file. You can use wrappers if necessary. The execution of binary files from within a shell script is not supported.

You can copy and modify existing scripts, or create your own.

**Prerequisites**

Before you can run shell scripts on macOS devices, you must have instructed macOS device users to:

- Download and install Ivanti Mobile\@Work for macOS
- Register with Ivanti EPMM using Ivanti Mobile\@Work for macOS

Related topics 

[Registering macOS devices with Ivanti EPMM using Ivanti Mobile@Work for macOS](docId\:D8kiNfUW65-GOx2rz5Hst)

Shell scripting primer (on the Apple website)
