Generate Artifacts Using Powershell CommandLine

[cmdletBinding()] param ( [parameter(Mandatory = $true)] [string]$artifactList, [parameter(Mandatory = $false)] [string]$OutDir ) if (-not (test-path “$env:ProgramFiles\7-zip\7z.exe”)) { write-host ” $env:ProgramFiles\7-zip\7z.exe is needed ” } set-alias sz “$env:ProgramFiles\7-zip\7z.exe” $artifactzipList = $artifactList -split “;” $artifactzipList foreach ($artifact in $artifactzipList) { $artifactDic = $artifact -split “:” $artifactLoc = Join-Path $OutDir $artifactDic[0] write-host “$artifactLoc” $artifactName = $artifactDic[1] write-host “$artifactName”[…]