Can I set the primary Language of OS X by using shell script or AppleScript?
You don't have to change System language to launch an app in different one. You can do for example this:

/Applications/Maps.app/Contents/MacOS/Maps -AppleLanguages '(de)'


This will launch Maps.app with german language set.



Here are the other options: Is it possible to launch a program in a specific language?