Of course there's a script, a pattern, a game plan or whatever you want to call it. That's the way baseball is now. The average starter goes 6 innings so you need to cover the last 3 with your bullpen. If you're winning but it's close you use your 3 best relievers, assuming they're available. If other s*** happens you handle it accordingly.
Every manager does virtually the same thing.