Script in password for a client OSX?

We are remotely creating a default config file for the client with a script so when they start OwnCloud they only are prompted by the password screen when OwnCloud starts.

The question is now if there are a way to script in the password as well?