I imagine Scripts like additional functionalities for MetaTrader, something like the icons (buttons) in the menu - you double click on a Script and something happens, but only once. In general, a Script runs for milliseconds (or seconds, if there are trades to be created or deleted) and then automatically exists.