Hazel to Evernote likely with KeyBoard Maestro

I idly wonder if the challenge I have is the thing that will kill evernote for me. Oh well lets try.
Sometimes I find webpages that Evernote clip won't clip well (usually recipes). However they tend to have Print buttons that strip away the awful ads and extras. So I save to PDF. So far so good.
I know that Evernote killed off their AppleScripting for now and I sort of get why. So to files into Evernote and in the correct notebook, I need to some programming.
Hazel to recognize that there is a PDF. Then I went to use Hazel to call KM and with the filename. Then I have a KM script to import the file into the correct notebook in Evernote.
What I can't figure out is how to invoke KM with from Hazel. Presumably you will say AppleScript, which is cool. Can someone point me to sample AppleScript?
Sometimes I find webpages that Evernote clip won't clip well (usually recipes). However they tend to have Print buttons that strip away the awful ads and extras. So I save to PDF. So far so good.
I know that Evernote killed off their AppleScripting for now and I sort of get why. So to files into Evernote and in the correct notebook, I need to some programming.
Hazel to recognize that there is a PDF. Then I went to use Hazel to call KM and with the filename. Then I have a KM script to import the file into the correct notebook in Evernote.
What I can't figure out is how to invoke KM with from Hazel. Presumably you will say AppleScript, which is cool. Can someone point me to sample AppleScript?