I created an internal loop in which I call REF to script.
REF has 2 useful parameters - TESTCONFIG and VARIANT. With help of them creation of multiple objects is possible. Main script creates main object and script in loop creates multiple objects and a single run of top script results in complex object creation.
Everything turned out to be simple enough.
Thanks for attention.