Using raw printing format from a custom script

hello,

I created a custom script to display a custom menu

in the menu will prompt for the quantity of labels to print

does anybody know how to call an specific ‘print format’ from the custom script to print that number of labels?

this is my print format

am also looking for this

I am looking for this too!