How to run in Mac command line?

i want debug my script, i use VSCode edit the script. how to debug or run script in command line(terminal)?
thanks for everyone!

For a Scriptable script you would output to the console in the Scriptable app. I don’t think you would be able to run at the command line without Scriptable running in a terminal streaming compatible mode - I don’t think it has that.

You could use a javascript testing framework (e.g. Jest) and mock the function calls which touch the iOS System.