You can't really pause a script, but you can break it into parts with schedules.
function partone()
{
echo("Hello World!");
schedule(1000,0,parttwo);
}
function parttwo()
{
echo("!dlroW olleH");
}
A schedule calls another function after a delay (in milliseconds) has passed. This delay will not cause any other functions to stop their execution.