You can use scripts like services. To do so, create a local service.
Procedure
Click the Governance resources folder in the Navigation bar.
Right-click the Governance services folder, and click New > Local service. The Create local service dialog opens.
Specify your settings.
Click OK.
You have created a new script service. The script for the service opens in Script Editor.