Thanks, for the quick answer.
Unfortunatelly, it does not help, because I have to create a menuitem tha call the function.
By the way, the documentation of "scriptstart" promissed that I could specify a function that is executed after the script is started. Please see the files attached to my first posting.
Furthermore there is a big difference in the behaviour of environment variables like "autoactpath" between calling a script via "scriptstart" or "scriptinclude".
So i am sure for my needs, I will have to use "scriptstart".
thanks