Pauses the current script until all foreground and background effects have stopped.
Syntax:
waitForEffects
This command takes no arguments.