Microsoft® Windows® 2000 Scripting Guide
Scripts that monitor or measure system resources typically need to collect data at periodic intervals. For example, it is unlikely that you would measure free disk space moments after installing a new hard disk and then never check again to be sure there was still space available on the disk. Instead, you are likely to check free disk space at regular intervals, perhaps once a week, once a day, or even once an hour, depending on the computer being monitored.
If there is a relatively long period of time between data collections, you might want to run the script as a scheduled task. This way, you can schedule the script to run every morning at 2:00 A.M., and you never need to give it a second thought.
However, using scheduled tasks is not always an option. For example, suppose you want to measure processor use on a computer every 10 seconds until you have collected 500 samples. Although you can create 500 scheduled tasks, one right after another, this is far more trouble than it is worth. A better approach is to run a single script that collects all 500 samples for you.