🛠️
AutomationPowerShell

PowerShell Safe Invocation

by Misaka-Mikoto-Tech

PowerShell Safe Invocation is an Automation skill for Claude Code, published by Misaka-Mikoto-Tech in agent-skills.

243 stars10 forkson Misaka-Mikoto-Tech/agent-skillsAdded 2026/09/02+3% in starsRepository updated 2026/08/28
agent-skillsai-agentscodexpowershellpowershell-7windows
Install in seconds
Install PowerShell Safe Invocation
Copy PowerShell Safe Invocation into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/Misaka-Mikoto-Tech/agent-skills/tree/main/skills/powershell-safe-invocation ~/.claude/skills/powershell-safe-invocation

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/Misaka-Mikoto-Tech/agent-skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/powershell-safe-invocation/SKILL.md in Misaka-Mikoto-Tech/agent-skills
Installs to
~/.claude/skills/powershell-safe-invocation
Collection
One of 3 skills cataloged from this repository
Category
Automation1648 skills

What PowerShell Safe Invocation does

PowerShell Safe Invocation shows how to run PowerShell and native programs safely on Windows. Use it for quoting, escaping, `pwsh`, `Start-Process`, file operations, and shell troubleshooting.

PowerShell Safe Invocation is cataloged under Automation on DirSkills. PowerShell Safe Invocation comes from a repository tagged agent-skills, ai-agents, codex, powershell and powershell-7.

Documentation

README

PowerShell Safe Invocation

Shell

Use PowerShell 7 through pwsh.exe unless Windows PowerShell 5.1 is explicitly required.

When the active shell is uncertain, verify:

$PSVersionTable.PSVersion
$PSNativeCommandArgumentPassing

Do not assume installing PowerShell 7 makes powershell.exe use PowerShell 7:

  • pwsh.exe = PowerShell 7
  • powershell.exe = Windows PowerShell 5.1

Native Programs

Never construct one large command string when arguments can be passed separately.

Use:

$exe = 'C:\Path With Spaces\tool.exe'
$argList = @(
    '--input'
    'C:\Data Folder\input.json'
    '--flag'
)

& $exe @argList

$exitCode = $LASTEXITCODE
if ($exitCode -ne 0) {
    throw "$exe failed with exit code $exitCode"
}

Rules:

This is the opening of the README. Read the full README on GitHub.

Frequently asked about PowerShell Safe Invocation

  • What else does Misaka-Mikoto-Tech publish alongside PowerShell Safe Invocation?

    PowerShell Safe Invocation is one of 3 skills that DirSkills catalogs from Misaka-Mikoto-Tech/agent-skills, the repository it ships in. Its siblings there include Bilibili Page Reader and Locus Unity Bridge. Each one is a separate skill with its own page in this directory, installs the same way PowerShell Safe Invocation does, and is maintained by Misaka-Mikoto-Tech in that same repository. The rest of the collection is listed on the Misaka-Mikoto-Tech/agent-skills page.

  • How does PowerShell Safe Invocation compare to other Automation skills?

    PowerShell Safe Invocation ranks #1489 by stars among the 1648 Automation skills in this catalog. The most-starred ones next to it are Autonomous Loops, Autonomous Agent Harness and Automation Audit Ops. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of PowerShell Safe Invocation against them. Open each page to compare what they document and how they install.