It's a short path through the menus: Insert > Service > Script.
Open Insert, choose Service, then click Script, and you're ready to write. Once it's in, build out your script and test it in-game.
The Service step is the one people miss — without it you won't see the Script option at all.