I'm not entirely sure why you would need a script for this, when you can add icons to the iconset graphic file by means of a graphics editing program. I used MS Paint to add a few icons to my own.
If there is some very good reason why you would need to do this, it might help to describe it.