ScriptRunner, Git or Team Foundation Server (TFS) and Visual Studio Code (VSC) are the ideal combination for your script lifecycle.
Set up git or TFS repositories, for example, according to topics or responsibilities. Within each repository, at least two branches are created for development/testing and production.
Use VSC with the PowerShell extension to develop scripts on all DevOps workstations and connect to the corresponding repository on Git or TFS.
The scripts in the branch “Develop/Test” synchronize with the ScriptRunner test system. This allows you to develop, modify and test your scripts at your leisure.
After all tests have been successfully completed, the scripts are released for production and merged into the branch for production. The ScriptRunner production system synchronizes the shared scripts and makes them available in the policy sets.