Windows Scripting Standards Skill

Windows 环境下 PowerShell 7 (pwsh) 与 Batch (.bat/.cmd) 脚本编写、调试排错与运行环境防坑规范。适用于编写、维护、重构与审查 .ps1 和 .bat 自动化脚本、诊断 Windows 终端或脚本执行报错(如非内部命令、UTF-8/BOM乱码、参数解析异常、退出码捕获)、以及 Linux/Bash 脚本向 Windows 跨平台移植;涵盖 PowerShell 现代管道与反引号转义、外部进程调用校验 ($LASTEXITCODE)、CMD 延迟变量扩展 (!VAR!) 等任务。

ItQianChen Updated

File contents

ItQianChen/windows-scripting-standards-skill/tree/main/ commit 0f1e67bb7d

Frequently asked questions

npx skillmds@latest add itqianchen/windows-scripting-standards-skill