To create a global reachable script you need to open your pool view and add a scrip item there.

If you select this script you can see in the inspector the script editor.

Click on the icon to open the script editor in a floating window:

The script editor looks like these: