Please find attached a couple of basic scripts you can use to learn from.
The first creates a Forest Pack object using settings hard coded in a couple of arrays. You could easily change those settings. Note that colours are represented in 0-1 range and are RGB (not sRGB)
The second example simply makes a forest pack object from the selected items in one click and uses the Wire Colour to control the ID Color.
Hope that helps,
All the best,