Great idea! I reworked it a bit β here is a reusable project for zipping a single file. Has two parameters β source file and archive file. Requires Powershell 5.0 or above (pre-installed on Windows 10).
Use Call or Iterate transformations to run it. With Call itβs basically a custom transformation for zipping files.
Can be modified to work with folders, add files to existing archives, etc. Here is the documentation on Compress-Archive command in Powershell.