This post is not about creating wallet manually, which I had seen in google search. One thing I didn't find is how do you script these to avoid human interaction.
In usual method, you can execute as
mkstore -wrl . -create -nologo
This will make you enter and re-enter password.
To avoid this,
echo -e "Newpass\nNewpass" | mkstore -wrl . -create -nologo