Script editor to create setup list

Wondering if there is a way to add setup lists through the script editor.

I have multiple cameras, and layers and need a to create a large combination of each

for example:
Camera A with Layer 1 and Layer 2
Camera A with Layer 1 and Layer 3
Camera B with Layer 4 and Layer 2
Camera B with Layer 4 and Layer 3
etc…