Passing Arguements to Swift Script?

How can I pass argues to Swift Script, so I can read like:
let args = CommandLine.arguements
for arg in args {…}
Thanks!

Since I have no experience with Swift, I’ll just make sure you’ve seen this wiki article in case you haven’t yet: https://wiki.keyboardmaestro.com/action/Execute_a_Swift_Script