The Ghost application uses an invisible window, so it does not support user interaction.
Do not use PAUSE or other commands that require user input. Doing so will cause the script to stop, which can only be interrupted by the Task Manager.