There are some similarities to Benjamin Rosenbaum's Hugo award winning short story "The House Beyond Your Sky" (from 2006), though I would not be surprised to learn that it is not what you seek because some of the details are not exact (this story is not in script form). On the other hand Mr. Rosenbaum's story is worth anyone's time.
Points of similarity:
There are simulated worlds containing intelligences, including one we meet intimately who is described in a way that sounds human (though this is not explicitly stated).
There is a conflict between senior and junior entities at the simulating level.
There is a breakout and attack by simulated entities (though not by the one we meet directly) who are mostly victorious.
The simulated entity that we meet ends in control.
Opening:
Matthias browses through his library of worlds.
In one of them, a little girl named Sophie is shivering on her bed, her arms wrapped around a teddy bear. It is night. She is six years old. She is crying, as quietly as she can.
Apparently the story is now available under a creative commons license, and it is also available in audio form from Escape Pod.