Scheduled tasks can run at the logon screen but it also depends on the program you are launching. We use Defrag as a scheduled task that runs on computers at night.
Here is the link to a VBScript to defrag all machines on your network.
http://www.dougknox.com/utility/scripts_desc/defrag_all.htmHere is a script for Disk Cleanup.
http://www.visualbasicscript.com/m66923.aspxHere is another link that also illustrates how to create a Scheduled Task via script.
http://blogs.technet.com/b/heyscriptingguy/archive/2004/09/22/how-can-i-manage-scheduled-tasks-using-scripts.aspxI have also had success with PSEXEC by Sysinternals
http://technet.microsoft.com/en-us/sysinternals/default.aspxHope this helps~!