1: 2: 3: 4: 5: 6: 7: 8:
# Script Zip.ps1 Param( $Archive = $(Throw "Archive Name is required"), $File = $(Throw "File to add to Archive is required")) $7Zip = 'C:\"Program Files"\7-Zip\7z.exe' Invoke-Expression "$7Zip a -mx=9 $Archive $File"