Ok so I have saved it as test.sh and chmod +x the script.
nmcli con up id myvpn=
/opt/google/chrome/google-chrome %U
geany /home/crunch/downloads/lr.txt
I execute it using terminal however it only connects to the vpn and runs chrome, Geany only executes once I close down chrome, Any suggestions.