I post only the commands.
You might use the CLI without (--command) interactive to stop more than one instance or you replace ":shutdown" with my examples.
Also you can write commands into a file and use the CLI script with --file=<filename>.
Have a look into the documentation