Modify server side configuration of channel subscription

Hello,
is there any other way to modify server side configuration of channel subscription besides using WebUI?

My goal is to create a recurring action to apply all available updates to the systems from a custom repository that includes packages “in a freeze state” only.
This means this action is a workflow of 3 steps:

  1. Modify server side configuration of channel subscription to custom channel
  2. Apply all available updates
  3. Modify server side configuration of channel subscription back to base channel

THX