Automating configuration with cli scripts

Hey there. What’s the BASH or powershell script to disable and enable a VPN?
it’s something like that…
http://10.1.255.255:8080/SEMP/v2/config/msgVpns/v001

let’s assume user name is admin. Password is ADMpwd1