If it's failing, there must be some sign of failure. Is there an error message? Is asp.exe even executed? What does and what doesn't happen?
Or should we just guess what your problem is?
Sorry, no error at all - nothing. There is a pause that is the same length as when I run the command from the command prompt rather than the script, but no error message at all. Another person has suggested I look into the system function. I'll start there. Thank you for taking the time to comment.