Export Layout - Expand Render Area

Hey guys,
I’m trying to automate an Export Layout script with Javascript. Is there a way to set the Expand Render Area that’s available when manually exporting a layout, only with script?