Drag out a when clicked block and snap it on top.
Your script will start whenever you click the green flag:
To stop, click the stop button: