run-powershell

run-powershell is a command for coding agents from WYRE-AI/msp-claude-plugins. It costs 10 tokens per session (1,862 once invoked), scanned A, original, Apache-2.0.

A command for running a PowerShell script on a selected Atera-managed computer. Atera is a remote-monitoring platform used to manage IT endpoints.

In plain words
What is it for?
Use it to run an inline script or saved script on an online Atera agent, with a chosen account and timeout.
Why use it?
It checks that the computer and script are available before starting remote execution and returns an execution identifier for tracking.

Command

Part of the atera plugin — 4 skills, 10 commands, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/wyre-ai/msp-claude-plugins/run-powershell
Clone the repo
git clone --depth 1 https://github.com/WYRE-AI/msp-claude-plugins

Or install atera, the plugin that ships this one along with the rest of its 4 skills, 10 commands, 2 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for run-powershell

README.md
[![agentmods](https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/run-powershell.svg)](https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/run-powershell)
Your own site
<a href="https://agentmods.dev/commands/wyre-ai/msp-claude-plugins/run-powershell"><img src="https://agentmods.dev/badge/commands/wyre-ai/msp-claude-plugins/run-powershell.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,862 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.01862
Opus 5 $0.00005 $0.00931
Sonnet 5 $0.00002 $0.00372
Haiku 4.5 $0.00001 $0.00186

Measured 5d ago against content hash 03fe720b983d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

run-powershell scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s -X GET "https://app.atera.com/api/v3/agents/{agent_id}" \
msp-claude-plugins/atera/atera/commands/run-powershell.md · 316 lines

How it starts

The opening of the file, as written. The whole thing — 316 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Run PowerShell on Atera Agent

Execute a PowerShell script on a specific Atera agent (endpoint) either inline or from the script library.

Prerequisites

  • Valid Atera API key configured
  • Agent must exist and be online
  • User must have script execution permissions
  • Either script or script_id must be provided

Steps

  1. Validate agent exists and is online

    curl -s -X GET "https://app.atera.com/api/v3/agents/{agent_id}" \
      -H "X-API-KEY: $ATERA_API_KEY" \
      -H "Accept: application/json"
    
    • Check agent exists
    • Verify agent is online
    • Capture device info for output
  2. Get script content if using script_id

    curl -s -X GET "https://app.atera.com/api/v3/customscripts/{script_id}" \
      -H "X-API-KEY: $ATERA_API_KEY" \
      -H "Accept: application/json"
    
    • Validate script exists
    • Show script name for confirmation
  3. Execute the script

    curl -s -X POST "https://app.atera.com/api/v3/agents/{agent_id}/runpowershell" \
      -H "X-API-KEY: $ATERA_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "Script": "<script_content>",
        "RunAs": "<run_as>",
        "Timeout": <timeout>
      }'
    
    • Capture execution ID for status polling
  4. Poll for completion

    curl -s -X GET "https://app.atera.com/api/v3/agents/{agent_id}/powershellstatus/{execution_id}" \
      -H "X-API-KEY: $ATERA_API_KEY" \
      -H "Accept: application/json"
    
    • Poll every 5 seconds
    • Respect timeout parameter
    • Capture output when complete
  5. Return execution results

    • Execution status
    • Script output (stdout)
    • Error output (stderr)
    • Execution duration

Parameters

Parameter Type Required Default Description
agent_id integer Yes - The agent ID to execute on
script string No* - Inline PowerShell script
script_id integer No* - Saved script ID from library
run_as string No System System or LoggedOnUser
timeout integer No 300 Timeout in seconds

Read the full file on GitHub · 316 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 316 lines · 10 tokens per session scan A 03fe720b983d

Subscribe to this mod's changes

run-powershell is a command published in the GitHub repository WYRE-AI/msp-claude-plugins (44 stars, last pushed 2d ago), licensed Apache-2.0. It adds 10 tokens to every session and 1,862 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.