Snippet for running scripts manually / automatically

If the script was started with the parameter “Automatic”, then it runs automatically, otherwise in “Manual” mode: It can be used at the beginning of a script. For me it is an easy way...