1 2 3 4 5 6
foreach ($problem in 1..5) { Push-Location "output/$problem" 7z a -tzip "$problem.zip" * Move-Item "$problem.zip" .. Pop-Location }