I hadn't thought of using a UDS to trigger the printing of a BarTender document. I think you should be able to either use shell.run to perform the same command that Commander would use or write the item code and any other relevant info you want printed to a csv file in a directory monitored by Commander. Then set up the Commander job. If on BarTender v2017, then substitute Commander with Integration Builder.