Inject the printer uri via the msg.topic from your calling node (e.g. Timestamp node).
Printer uri should look like this: ipp://mycupsserver:632/printers/Brother_HL2030
Add a function to your flow and add the module @sealsystems/ipp on the Setup tab.
Then add the following code to the On Message tab.