PowerShell script to zip files individually

This is a simple PowerShell script to zip each file in a source folder location individually and place them in a target folder.

The script is attached as a file to this blog, following needs to be done before executing the executing it:

  1. $sourcePath: Provide the folder location where the files to be zipped are placed
  2. $targetPath: Provide the folder location where the zipped files will be placed
  3. $currentFileExtension: The extension of the files to be zipped

ZipXlsxFiles.ps1.txt

Thank you