The fields that matter
| Field | What to put |
|---|---|
| Name | Short and specific: "Clear print queue and restart spooler". |
| Language | PowerShell, Bash, Python or Batch. |
| Platform | Windows, WindowsServer, Linux, MacOS, Microsoft365 or Any. The AI only proposes scripts for a matching platform. |
| AI description | What it does, when to use it, what it changes and how to verify it worked. The AI reads this to decide whether the script fits. |
| Parameters | Named inputs with type, required flag and an allowed-values list where possible. The AI can only fill parameters you define, and values are validated. |
| Risk level | Proposed by the author, confirmed by the reviewer. See below. |
Risk levels
| Level | Meaning | Examples |
|---|---|---|
| ReadOnly | Reads information only; changes nothing | List services, check pending reboot, read event log |
| Low | Harmless if run when not needed, or easily reversed | Start a stopped service, clear print queue, flush DNS |
| Medium | Changes configuration; reversible with effort | Reinstall a driver, reset a network adapter |
| High | Significant or hard-to-reverse change (default for unclassified scripts) | Reset Windows Update components, install software |
| Critical | Could cause data loss or outage | Disk, user or security-policy changes |
Approval workflow
- Draft: create the script (Technician, Admin or Owner).
- Submit for review: the author submits it.
- Approve or reject: a different Admin or Owner reviews the code, confirms the risk level and approves it. Approval records a SHA-256 fingerprint of the exact content.
- Edits reset approval: any change returns the script to Draft and clears the fingerprint.
The API calls for each step are in the API reference.
Writing good library scripts
- Make scripts idempotent: running twice should be safe.
- Check before changing, and exit with a clear message when nothing needs doing.
- Print a verification line at the end, for example the new service state.
- Never hard-code passwords or secrets.
Need ideas? Start with our 10 PowerShell fixes for common helpdesk tickets.