can you run $PSVersionTable?
i'm thinking the script is for Powershell 3.0, but it's running under 2.0 context?
the third error i would think can occur if the string $DestinationFile has less than 20 chars., c:\Data\test.csv for example
Name Value
---- -----
CLRVersion 2.0.50727.5485
BuildVersion 6.1.7601.17514
PSVersion 2.0
WSManStackVersion 2.0
PSCompatibleVersions {1.0, 2.0}
SerializationVersion 1.1.0.1
PSRemotingProtocolVersion 2.1
Lowell