Shortcuts in MacOS

I’d like some help, if possible. I have a script that auto-creates a task in Omnifocus, and a Note in Notes. I’d like to use Hookmark to hook them to each other (adding the Hook link to the task in Omnifocus, and the corresponding Hook link to the Note in Notes) using shortcuts. But I am very unclear how to do this. Any help here? I’ve asked a similar question previously.