It seems like encoding of bytes of a zip file (about 1.7gb?) is causing memory issue..
$SourceFilePath = "c:\\temp\\a.zip" $bytes = [System.IO.File]