These other scripts do not use PowerCLI I assume ?
A Scheduled Task runs under a specific account, by default System.
Did you specify that account when you defined the scheduled task ?
That could explain why it runs when you run the script under your account.