Shouldn't you run the script synchroniously (set it via a GPO) ? That way the scripts must be ended before the desktop appears.
_________________________
Kind regards,