Executing Kotlin scripts in command shell

Did this not give you an error?
error: unable to instantiate class test.Test (test.kts): java.lang.NoClassDefFoundError: kotlin/script/templates/standard/ScriptTemplateWithArgs