Thanks John, from that I was able to do what I wanted. Here is what I ended up with for anyone else who needs it:
var frameRate = 30;
var maxDuration = 10;
var maxWidth = 760;
var maxHeight = 500;
var pixelAspect = 1;
theComp = app.project.items.addComp(“out_test”, maxWidth, maxHeight, pixelAspect, maxDuration, frameRate);
var comp_folder = findFolder (findFolder(app.project, “scenes”), “my_folder”)
comp0 = findItem(comp_folder,”comp0″)
comp1 = findItem(comp_folder,”comp1″)
theComp.layers.add(comp0)
theComp.layers.add(comp1)
var duration = 0;
for (var i = 1; i