Executing Kotlin scripts in command shell

As a temporary solution you can use kscript GitHub - kscripting/kscript: Scripting enhancements for Kotlin