I wrote a simple script which outputs a value, but I can’t see where it’s being printed when I run the script.
Open Console using ~ key, and result will be printed there after you run the script.
If you open console (~) before running the script, result will be shown. This behavior is not expected here. I registered this in our bug tracking system.
Thanks for the report!