Hover itㅤ[<img src="https://www.wppluginsforyou.com/wp-content/uploads/2020/05/tooltips.png" width="15px" />
](## "Code preview syntax was generated using gh-linguist-preview")
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pwsh | |
#Requires -Version 7 | |
# Specifying no parameter will result in current working directory ($pwd) being archived into $pwd\$pwd.zip | |
param ( | |
# The following paths can be relative or absolute: | |
# path to folder/s containing the files to be archived | |
[Alias("i","input","from")][string[]][ValidateScript({ Test-Path -LiteralPath $_ })] $FolderPaths = @($PWD), | |
# path to zipfile / zipFolder if $ZipNameFromJson is specified (will be created if it doesn't exist) | |
[Alias("t","to","output")][string] $ZipPath = "", # defaults to $PWD.zip |