I realise this is a very old post, but other people might come looking. Use the bash shell.
Install command line Kotlin compiler using sdkman. Include the ~/sdk/path ... /to kotlinc in your PATH (.shrc). Test you have this path correct with kotlinc -version. Ensure java is installed and working. If you get permissions errors, chmod 755 the kotlinc bin. Enjoy.