A minimum implementation to use main.kts in your project.
https://github.com/Stream29/SimpleMainKts.git
Stream learned the usage of Kotlin scripting and try to make a minimum implementation of the main function.
Stream uploaded this repository to GitHub, hoping other learner can refer to it and learn Kotlin scripting.