How to quickly write and run Kotlin script – practical guide

As Kotlin has that ability with .kts (Kotlin script) files, I started looking for ways to achieve it in the fastest and simplest way possible. Following is a summary of my discoveries.
Share