To run a script from the navigation tree, right-click the script node and click Run on the shortcut menu.
When you run a script, the Python tab displays:
execfile(r"pathToScript")
If the script prints any output or produces an error message, it appears in the Python tab.