fixed powershell 2.0 compatibility

made the script working in PS 2.0
-Raw parameter is introduced in 3.0