Have all Events besides Player stop temporarily

Hello, I am working on a game that includes a Time Stop ability. For this, I want to have all events (enemies) stop moving for about 500 frames, while the player can still move. Is there any way to do this?
You could have using the ability turn on a switch, and events have a page with that switch as the condition with no movement commands.

Similarly, a parallel common event activated by that switch counts up a variable with a Wait: 50, and when the variable reaches 10 you turn the switch off.
Try
Code:
$gameMap.events().forEach(event => {event._waitCount=300;})

Original thread: https://forums.rpgmakerweb.com/threads/have-all-events-besides-player-stop-temporarily.173180/