Manage custom scripts
- Last Updated: January 27, 2026
- 1 minute read
- Automate MFT
- Documentation
Create a custom script
- Click .
- Enter the script details:
- Name: Provide a unique name (required).
- Description: Optionally, add a description for context.
- Enter your PowerShell code in the Script field. This
field is a built-in editor with autocomplete for supported
cmdletsand their parameters. - Click Save. Your script can now be referenced by one or more tasks
For information about the allowed custom cmdlets and
regular PowerShell cmdlets, see Custom scripts.
Edit a custom script
- Select a script from the list. Double-click or click the
edit icon (
). - Edit the script details.
- Click Save.
Delete a script
- Select a script from the list.
- Click the delete icon (
). If there are dependent
resources, you cannot delete the script until these dependencies are
resolved. - If there are no dependencies, click Delete to confirm.
For practical examples of using custom cmdlets, see Custom script samples.