dotnet publish -p:PublishProfile=Windows $compress = @{ Path = "out\release\windows\buypeeb.exe" DestinationPath = "out\release\windows\buypeeb.zip" Force = $True } Compress-Archive @compress