After closing app script try to open it again. After oppening app and connecting to server script stops and nothing is continued.
:start
timeout /t 2
ping -n 1 10.0.0.1 | find "Reply" > nul
if errorlevel 1 goto OFF
goto start
:OFF
taskkill /F /IM openvpn-gui.exe
taskkill /F /IM openvpn.exe
timeout /t 3
"C:\Program Files\OpenVPN\bin\openvpn-gui.exe" --connect pgp.ovpn
goto start
:end