I'm just guesing but wouldn't you need to use "allowimplicitout " parameter and set it to "yes" for System.Out and System.In for command line compiler to work with your code?
Othervise I would suggest for you to read through IDE documentation to learn wich parameter must be used when you are compiling your project with command line debuger.