You can run a script from the command line interface (CLI) by typing the following command execfile('myscript.py')