Printing from Terminal ...

Hello,
With the help of Hazel, I want to set a folder to print using existing print options when a document is added to it. Print options are only available from a Terminal command line script and I don't know how to write the script.
I simply want that the added file to print to a specified printer with existing OS X (Big Sur) pre-set options.
My printer's name is «HP_OfficeJet_Pro_8740» and the preset option's name is «Black and white»
Can you please help me with that script ?
With the help of Hazel, I want to set a folder to print using existing print options when a document is added to it. Print options are only available from a Terminal command line script and I don't know how to write the script.
I simply want that the added file to print to a specified printer with existing OS X (Big Sur) pre-set options.
My printer's name is «HP_OfficeJet_Pro_8740» and the preset option's name is «Black and white»
Can you please help me with that script ?