One can use the --execute (or -x for short) command line option from jwno.exe to run commands from the system command line (either PowerShell or cmd.exe). It's a shortcut for evaluating (:call-command ...) through a REPL connection, so a REPL server needs to be running.

For example, to run the :toggle-parent-direction command:

jwno.exe -x :toggle-parent-direction

Colon characters (:) in front of command names can be omitted, so this is equivalent:

jwno.exe -x toggle-parent-direction

Commands with arguments must be quoted. For example, to move a window to the left:

jwno.exe -x "move-window :left"

Command arguments can be anything, as long as they have correct Janet syntax. If we want to move a window in pixels instead, we can pass a tuple as :move-window's argument:

jwno.exe -x "move-window [100 100]"

We can even pass functions. Here a short-fn is passed to the :insert-frame command, to activate the new frame after insertion:

jwno.exe -x "insert-frame :after |(:activate $)"