Unable to find type [System.IO.Compression.CompressionLevel]: make sure that the assembly containing this type is loaded
Try using Add-Type -AssemblyName System.IO.Compression.FileSystem instead. It is cleaner and does not have a dependency on the reference assemblies which need an installation of Visual Studio.