Script based extension creation

Has anyone created many extensions in a script. I have to create 190 extensions so I would like not to do it by hand. I can write the sip extensions in the sip_custom.conf but then they would not be visible in freepbx.

I would like the script to create a lot of extensions with voicemail using a standard password.

Br Thomas