You can copy the script to a text file and save it to a file named example.py (file name can be any valid file name in your system). Open a cmd window and type monkeyrunner.bat example.py and press enter key on your computer. Assign a number to a variable.