There are several possibilities. Does it need to be automated, or is it just every now and then, when you work on the file?
var myItems = [
You then open the console, copy the whole code into the Console, and execute the whole code in one step.
If you have to do the same quite often, but always with the same values, you could create a custom menu item and then run this code from the menu (or the toolbar)
Another possibility would be preparing an FDF which runs the above code when it gets imported into your document. This would also have the possibility to modify the list whenever you load it into the form.
And if you prefer buy over make, you might talk to Appligent; I believe to remember that they have an utility which allows you to take a text file and turn it into the options list for your combox.
Hope this can help.