The script to programmatically set Network and Location