run-powershell-script
Execute PowerShell scripts to manage Sitecore and return output. For mass updates, read the bulk-update guide first to follow safe patterns.
Instructions
Runs a PowerShell script and returns the output. Before writing a script that changes many items, read the guide://bulk-update resource: it carries the pattern a mass write needs (every ID resolved from the instance, a named subtree as the root, a dry run the user approves, BeginEdit/EndEdit with a per-item try/catch).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | The Powershell script to run. |