See this topic:
But also, the script console is wrapped internally to capture output, so runs its own script module initialization, separate from Vision.