Export Project with Scripting

Is there any way to export a project as a .zip file from a script?
I poked around in the javaDocs but I couldn’t really decipher anything that was what I was looking for. Basically I’d like to replicate the export from the gateway webpage but on a timer/event basis.

I’m sure you know this, but just in case, the scheduled daily backup isn’t what you are wanting?

No… Looking for a specific project in the gateway.

You’re looking to call this from a gateway (scheduled?) script, or from the designer, or where?

Gateway as a schedule if possible.