See <https://kotlinlang.org/docs/tutorials/command...
# getting-started
j
See https://kotlinlang.org/docs/tutorials/command-line.html, it has an example of either compiling the app into JAR, or running the script (although then it needs .kts extension and code on the main level, outside main())