Change groupId
Add support for Windows cmd files

Same as current support for Windows bat files.
Use System.console() for stdout if available