Print Format filedname for customized script

I want to create a custom script for my Sales Invoices to control the default print format based on the customer. I know I can set a default Print Format on the Customized Form as below, but I also want to set it in a custom script based on the customer. What is that name/variable I can refer to set the Print Format in the script?

Thank you.