I have made a script that makes some backup and then sends a confirmation email. The script works fine when run from ISE but it does not work from Task Scheduler. In Task Scheduler the result is "The operation completed successfuly.(0x0)" but the final result is null. Any ideas what may be wrong?