The program is using /X for the default printer, but the default printer keeps changing

If you set up a batch file containing the line.

RUNDLL32 PRINTUI.DLL,PrintUIEntry /y /n receipt

(Where receipt is the name of the printer you want to be default)

And put it in the startup folder the default printer should be forced on Windows startup.