Creating Openvpn Accounts with scripts

Dear all,
I’m looking for a solution to enable a huge number (30-50) of roadwarrier accounts without using the gui.
Is there a script to handle this. However after the script has been used all the accounts should appear inm the Gui.

regards
herby