YoYou could try yoto get yoryour publication and then the child publications this way:
var parent_pub = $models.getItem("tcm:0-2-1");
var list = parent_pub.getListChildPublications();
Then iterate the resulting list to do something to eachevery publication objectobjects.