Hi,
I haven't tried your specific requirements but I use a keyboard mapping utility called autohotkey and you can have an ai like chat gpt create the script/macro for you.
Here. I just had gpt create the macro you need.
Autohotkey macro to launch and switch to Joplin and create a new note.