One line command to control openvpn/wireguard and the internet Killswitch?

is it possible to have a one-line command to bring the openvpn or wireguard client down and switch off the internet killswitch?

does anyone happen to know the relevant commands and how to switch it back?

I’m also wondering how easy it might be to script switching to different openvpn servers via a one line command - or switching from openvpn to wireguard.

The use case is creating buttons on iOS via the shortcuts app and SSH to control the router with a button press on the phone - things I do frequently that I would rather not have to login to the admin console to do.

thanks for any help!