Using shell command or similar to automate connecting/disconnecting NortonVPN on macOS

I’ve just installed Norton after using PIA for years. With PIA I was able to connect/disconnect the vpn using a shell script. Is it possible to do the same with Norton VPN?
I’m able to check if it’s connected by using ifconfig |grep ipsec0 but can’t find a way to automate connecting.
I’m using MacOS 15.0.1 if it makes a difference.

edit: Figured it out using apple script

try
	set vpn to do shell script "ifconfig |grep ipsec0"
	set vpnCommand to "Turn off"
on error
	set vpnCommand to "Turn on vpn"
end try

tell application "System Events" to tell process "Norton" to click menu item vpnCommand of menu "Norton" of menu bar 1