There are a number of options to do this - and a number of custom functions that will help. In general you'll want to set a global var that tells your script to either run the script trigger or not. At or near the top of the script check that variable and either complete the running of the script or bow out (exit) based on the var.
Before you hit the destination layout set a variable; something like $$triggers = "off" (or "on").
In the trigger check to see if the triggers are set to run or not. If "not" exit the script. Just remember to set/reset the variable.
For one set of custom functions, guidelines on ho to use them, and a few suggested "best practices" for suppressible script triggers, check out this page at FMStandards.org.
If this is just a something you need for debugging and you have FileMaker Pro Advanced you can disable script triggers via Tools > Debugging Controls. The use of a variable as mentioned above is good practice to follow. It allows you to quickly turn triggers on and off as needed.
Thanks, for the direction. It is not for debuging, it in combination with menu's and some sorting stuff.