Running as Task Scheduler or via an admin script has it's own pitfalls and issues as well. I agree that depending on what the task is the Task Scheduler would be a great method.

Not sure why, just seems everyone steered clear of that method, so I provided some code based on an idea by Les.