Sage 100c 2022 Operations Management Work Ticket Printing

We have Sage 100c 2022 with Operations Management. I would like to add a button to the Work Ticket Printing screen that replaces the Print button, launches a script to cycle through the JT_WorkTicketAttachments file for all attachments for the current Sales Order / Work Ticket and prints each related attachment. This might have to go on the Work Ticket Entry screen. Any assistance with this script would be appreciated.

Thanks in advance for your assistance.