Just keep in mind that the "-print-to-default" switch is for Sumatra PDF and won't work for other programs.
https://www.sumatrapdfreader.org/docs/Co...ments.html
F.ex. Notepad++ uses "-quickPrint"
I recommend reading the whole article linked to in the original post, several good tips on how to do "stuff".....