Is there anyway to ensure that my script has finished running before the desktop icons, taskbar, etc. load on the desktop?

Currently, users are able to start apps and open files locally before the script has finished executing. This is no good as sometimes we have important info to display.

I would like to have my script complete executing and then continue to load the desktop, etc.

Any ideas? [Confused]