That is 2 questions in 1 really. If you want to spawn mobs, the command is
MonGenP "D001,150,150,140" Pig 1
MonGenP "MAP,X,Y,RADIUS" Mob Qty
The automatically part is best done using an NPC, not 00Default.....
Use [@_Startup], DelayGoto and CheckMonMap with your MonGenP
So, something like...