How to receive list of command line parameter in a custom task written with Kotlin?

Chatgpt figure this out…

Post in here hope to help who encounter this problem