You can use Jamf Pro to manage and run scripts in your environment. Adding a script to Jamf Pro allows you to do the following:
Enter parameter labels
Parameters in scripts make it easier to reuse the same script for multiple scenarios by defining values to be used across various places within the script. In Jamf Pro, you can label these parameters to clarify their purpose. For instance, if a script uses "$4" for a printer name, you can label that parameter as "Printer name" in Jamf Pro. This label will then display in the interface when creating a policy with that script, reminding you what value should be used to substitute with the parameter.
Specify operating system requirements for running the script
Specifying an operating system requirement for a script allows Jamf Pro to skip running it on incompatible computers.
Set the priority order for the script
In some situations, the order in which a script is run compared to other elements of a policy may be important. For example, if you want to create a new local user account on a computer and then run a script that takes an action on that user account, you might configure script priority set to After to ensure that the account exists before the script is run.
Add the script to a category
Categories allow you to group policies, packages, scripts, and printers in Jamf Pro. You can also use categories to group policies, configuration profiles, apps, and books in Jamf Self Service. This makes these items easier to locate. For more information, see Categories.