This line isn't meant for the Python console. It is used to invoke Gimp from a command prompt (CMD.EXE, DOS shell, "black screen", etc...)
Running everything in the Python console is possible too. Copy-paste the definition of the run() and process() methods in the Python console, and then call run('/path/to/directory') in that same Python console.
Running everything in the Python console is possible too. Copy-paste the definition of the run() and process() methods in the Python console, and then call run('/path/to/directory') in that same Python console.