I wouldn't suspect a PS v2-v3 problem, but would look at the execution environment of the scheduled task of both platforms.
Is it the same account you use to run the scheduled task ?
Do you see the same errors when you run the script from the PowerCLI prompt, while connected with that account ?
Perhaps add some logging to the script (Start-Transcript) ?