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