$sourcePath = Get-Location $destination = Join-Path -Path $sourcePath -ChildPath "tsms.zip" $exclude = @(".git", ".next", ".vscode", "node_modules", ".gitignore", "zip_project.ps1", "tsms.zip") $files = Get-ChildItem -Path $sourcePath -Exclude $exclude Compress-Archive -Path $files -DestinationPath $destination -CompressionLevel Fastest -Force Write-Host "Folder zipped successfully."