How can I run shortcuts via the terminal instead of using keys in hamerspoon?

Oddly enough, my reply on this other thread just now feels relevant here. Take a look at using Obsidian’s URL scheme, or perhaps looking at one of the enhanced URL scheme plugins which extend what is possible via a URL call.