# Write and run a short script to automate a Windows task

> Write and run a short script to automate a Windows task: 0 companies fully do it, 4 with a limit, 12 carry the tag. Every listing in Desktop & mobile app control with the reason and a source.

- Canonical: https://www.anchorterminal.com/niches/desktop-automation.write-and-run-script/
- Markdown: https://www.anchorterminal.com/niches/desktop-automation.write-and-run-script/index.md (~1,150 tokens)
- Slim: https://www.anchorterminal.com/niches/desktop-automation.write-and-run-script/index.min.md (~280 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/niches/desktop-automation.write-and-run-script/index.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-15

No company's docs show a full fit yet. The listings below do the job with a limit, or not at all.

| Companies, full fit | With a limit | Carry the tag | Share of the category's work | First-hand accounts |
| --- | --- | --- | --- | --- |
| 0 | 4 | 12 | 10 | 5 |

## What counts as done

The script validates before running, runs from the command line, writes its result and any error to stdout or a file the agent reads, and exits without leaving a dialog open.

How agents ask for it: make a hotkey that does this; write an AutoHotkey script to rename these windows; automate this click sequence

## Does the job, with a limit

It does the job, but something in the docs or a user's account will get in an agent's way. The limit is named in each row.

- **AutoHotkey (AutoHotkey Foundation LLC)**: /Validate loads and exits non-zero on error, /ErrorStdOut sends load errors to stderr, * reads the script from stdin and FileAppend to * writes stdout. Runtime errors open a dialog unless the script uses OnError or try, and acc-39 lost it to a policy against unapproved executables.
- **AutoIt (AutoIt Consulting Ltd)**: AutoIt3.exe runs a file or /AutoIt3ExecuteLine from a shell, /ErrorStdOut sends fatal errors to stdout, and ConsoleWrite gives capturable output. No validate-only switch on the command-line page, and functions report failure through @error, which the script must check.
- **Robocorp (Sema4.ai (full legal name not confirmed))**: An agent can write a short Python or Robot Framework task with RPA.Windows and run it from a shell. The rcc download page blocks automated requests, and exit-status behaviour of rcc task run wasn't documented on the pages read.
- **Robot Framework (Robot Framework ry (Robot Framework Foundation), business ID 2754775-1, Helsinki)**: An agent writes a suite, checks it with --dryrun and runs robot from the shell; the return code gives failures (0 to 250) and 252, 253, 255 for bad input, a stop or an internal error, with no dialogs. Driving Windows apps needs a third-party library.

- not this job: Aura Autopilot (TribeVR Inc. (named in Aura's terms of service and privacy policy), trading as Ramen): Not a Windows scripting tool; its harnesses are written internally for its decision model.
- not this job: AutoCua (Ashish Yadav and contributors (ComputerUseAgent on GitHub)): It is itself an agent (its coder mode writes code in a terminal), not a scripting language or interpreter another agent runs.
- not this job: Automation Anywhere (Automation Anywhere, Inc.): Bots are built in the Automation 360 editor and deployed by the Control Room; there is no short-script interpreter for an agent to run from a shell.
- not this job: Beam (beam.win) (Noats, Inc.): No scripting or command interface is documented.
- not this job: Mage-VL-Cowork (Microsoft): Its shell channel is bash inside a Linux sandbox, not Windows scripts such as AutoHotkey or PowerShell run on the user's machine.
- not this job: UiPath (UiPath Inc.): Automations are built in Studio and published as packages; there is no short-script interpreter an agent runs from a shell.

3 listings in the category were added after this reading and aren't marked yet.

## What stops agents finishing

- runtime error opens a modal dialog in an unattended run
- policy forbids running an unsigned interpreter
- antivirus flags the interpreter release

## Around it

After: code.commit.

## Where this comes from

Weight 10 of 100 in Desktop & mobile app control: 5 of 45 accounts (two Hacker News AutoHotkey accounts, a COM scripting maker, a Windows-MCP PowerShell issue, a COM glue-code issue); no AutoIt account found

As data: https://www.anchorterminal.com/api/v1/use-cases/desktop-automation.write-and-run-script.json, or the MCP tool get_use_case with id desktop-automation.write-and-run-script. Draft, read 2026-11-15 from public docs and first-hand accounts, not yet reviewed by a person.

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
