Apply Now and GUI Scripting

Network Preference Pane has “Apply Now” button. I’m trying to click this button using GUI Scripting. Or is it possible to apply setting without opening Network Preference Pane at all using some unix command?

you can change network locations easily with the shell command scselect