My apologies... I assumed when you mentioned the scheduled task that you had already seen the UDF. I haven't posted it to the UDFs because I haven't received all that much feedback on it. If you find it useful, maybe I'll post it then.

Please see the following threads for the UDF and an explanation of how to use it.

RunAsInteractiveUser / LaunchApp.wsf Conversion Testing
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Main=26830&Number=198514#Post198514

How to use UDFs -
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=81943#Post81943

Post back your results or further questions.