Set Gateway Settings in a Script?

@PGriffith Tackling the same problem as here: Any 'configuration' tools to set up different connections based on configuration

Where I have two servers, a development and production server, that I want to be able to perform backup restores to without changing db connection strings. I solved the db problem with a startup script to read a configuration.

I realized after posting that I can change the name of the gateway as an option in the backup restore, so that issue is solved.

But I’d like to be able to do the same thing for the backup folder. That way the development backups aren’t saved in the same place as production backups. (It’s not a huge issue, since the name of the backup file has the name of the gateway, so they are technically discernable if in the same folder. But would be nice to have.)