The script ends by printing TRUE eleven times and a version number for xapir.
If the console is stuck at the Browse[n]> prompt and missing the TRUE/FALSE outputs, you likely created an accidental breakpoint.
Remove the breakpoint: Find and click the red dot next to the line numbers in your script editor to clear it.