I wrote a heavily modified Plex auto-update script initially based on Martino’s script. It addresses your concerns and will download and install the update as per your Public/Beta channel selection in the PMS config general settings. I welcome you to read my announcement posting here:
I specifically added the channel selection functionality inspired by your post here.