You can still use the same script to set or get project params.
The only different is that you don’t need to do app=app1 if you are not running in script editor. Natron automatically assigned current instance to app in nonGUI mode.
So, simply do the following
app.getProjectParam('outputFormat').set('HD_720')