Provisioning many extensions

Is there a command line way of provisioning multiple extensions.

I find that the only fields changing are the extension number and name after creating a profile for the group of extensions. So, going to the GUI and filling in the forms repetitively is boring and error prone.

Is there away to put in these values - using a script?

bulk extensions, third party add ons