How does cmd output the result of the script execution in the console?

I really like the atom editor, it is convenient and pleasant to work with. configured it to work with lua. everything is just fine. for execution, I use the ‘script Run code in Atom’ package!’ how does cmd output the result of the script execution in the console? my platform is windows 10.