Get the most out of OpenFrame

Skip to content

Create Your First Script

AUTOMATIONBEST PRACTICESGUIDEOPENFRAMETUTORIAL

Phase 5 — Scripts & Automation · Step 3

Section

October 27, 2026

Published

Vladislav Marchenko

Vladislav Marchenko

Head of Marketing

Reviewed on 24/11/2026

Create Your First Script

Phase 5 — Scripts & Automation · OpenFrame Onboarding

The library is a great start, but sooner or later you'll want your own script — your install routine, your cleanup, your health check. The editor makes it straightforward, and you can test it against a real device before it goes anywhere near production. Let's build one.


Quick steps

  1. Go to Automation → Scripts → Add Script (or Generate with AI).
  2. Choose the platform and shell type, and give it a name, timeout and description.
  3. Add any arguments, environment variables or secrets, and write the code.
  4. Test it on a device, then save.

Before you start

  • Decide what the script does and which OS it targets — that drives the shell type.
  • Have the script body ready (or be ready to write it in the editor).
  • Know whether it needs inputs — command-line arguments, environment variables, or neither.

Open the editor

Go to Automation → Scripts → Add Script. You'll get the New Script form. (Prefer a head start? Generate with AI, next to Add Script, has Mingo draft one for you to review.)


Fill in the basics

  1. Supported Platform — toggle Windows, MacOS, or both. There's also a Run as User option (Windows only) for scripts that need to run in the logged-in user's context rather than as system.
  2. Name — something scannable, e.g. Clear Temp Files.
  3. Shell Type — pick the language: PowerShell, CMD or Bash. Match it to your target OS (PowerShell/CMD for Windows; Bash for macOS).
  4. Tags — search and add tags so it's findable later.
  5. Timeout — how long (in seconds) to let it run before OpenFrame kills it. Default is 90; raise it for long-running installs.
  6. Description — say what it does in plain language. Future-you will be grateful.

Define inputs (optional)

If your script takes parameters, declare them here:

  • Add Script Argument — an Argument plus a Value. Leave the value empty to make it a flag.
  • Add Environment Var — a name plus a value, passed into the script's environment.
  • Add Secret — like an environment variable, but for passwords and keys you don't want shown in the clear.

Pick the convention your code reads. If your script reads $env:NAME / os.environ / $NAME, use Environment Vars. If it reads positional/--flags, use Script Arguments. Mixing them up is the #1 reason a script "ignores" its input — see Run a Script on a Device for the full explanation.


Write the body

Scroll to Syntax and write (or paste) your code in the line-numbered editor. Keep it idempotent where you can — a script that's safe to run twice is a script you'll trust at scale.


Test before you save

Click Test Script. OpenFrame opens a Select Device picker (search, Device Tags filter, online/OS status) — choose a known device and run it for real. This is the step that catches a wrong table name, a bad path, or a variable you wired up wrong, before you roll it out. Confirm the result, fix, repeat.


Save

Click Save Script. It appears in Scripts with the shell type and OS you set; open it to run it, or use … → Edit Script to change it later.


Common questions

How do I add my own script? Automation → Scripts → Add Script, fill in the form and save.

Can I write scripts for macOS? Yes. Choose MacOS as the platform and Bash as the shell type.

How do I store a password or API key a script needs? Use Add Secret. Secrets aren't shown in the clear.

What timeout should I set? The default is 90 seconds. Raise it for long-running jobs such as software installs.

Can a script run as the logged-in user? On Windows, yes. Turn on Run as User.

Can I tag scripts? Yes. Add Tags in the form so you can find the script later.

Can Mingo test a script? Yes. When Mingo writes or edits a script it can test it on a device, using the script's saved secrets.


Quick checklist

  • Set Supported Platform (and Run as User if needed)
  • Named it, picked the Shell Type, set a sensible Timeout
  • Wrote a clear Description
  • Declared inputs in the right place — Argument vs Environment Var
  • Used Test Script against a real device before saving
  • Saved and confirmed it's in the library

What's next

You can now run your script on demand (Run a Script on a Device) or set it to run automatically — Schedule a Script covers recurring runs and device assignment. To read what came back, see Script Results & Output Logs.


Checked against OpenFrame 1.7 (November 2026). Screens and defaults may shift between releases — when in doubt, what's in your console wins.

Vladislav Marchenko

Head of Marketing

Hi all! My name is Vlad and I’ve been brought on to head the marketing team at Flamingo. Thankfully, this isn’t the first time I will be building a marketing department from scratch, so the experience should come in handy. Now it’s time to dive into the world of MSPs and find myself in this new world.

Related Content

Frequently Asked Questions

/onboarding-guides/create-your-first-script

Still deciding?

Mingo answers from our docs and customer stories.

Loading related content and questions