To set the default printer “Canon TS3100 series” before run theĀ  firefox:

 

@echo off
wmic printer where name="Canon TS3100 series" call setdefaultprinter
timeout 5 > NUL
"C:\Program Files (x86)\Mozilla Firefox\firefox.exe"