Wireguard with split tunnel

i do this a different way,

i travel often so i connect to many types of vpn routers, that i have no control over, wireguard, openvpn, watchguard.
sometimes, i have to use vpn software on my local laptop.
sometimes, i have i am forced to use a lan connection

so i need a universal solution, simple and flexible.

on my windows laptop, i change the local routing table.
there are several ways to do that but here is one example

# delete default route so no traffic will not tunnel thru vpn
route delete 0.0.0.0 172.27.232.1
# add a route to allow the ip range allocated to the lan behind the vpn server to tunnel thru the vpn
route add 10.6.96.0 mask 255.255.255.0 172.27.232.1