Not sure about how to automate it, but you could probably just flip the switch in the system tray. You could also tie it to a power profile.
I wasn’t really being serious with this reply. Your post seems to suggest you want to prevent wifi connection until a VPN connection is established. My suggestion was just to turn off wifi altogether due to some wordplay allowed from the title.
TUBES!