You could use the netsh
command for this purpose too.
If you run the following command, you can see the profile parameters you can set uting the netsh command:
netsh wlan set profileparameter /?
You'd use the name to identify, just as in your sample, and I guess you should use the keyMaterial
parameter to set the password.