winget upgrade --all is great, until it updates the one app you wanted to keep on an older version. Pins solve that.
winget pin add --id Microsoft.PowerToys
A plain pin keeps the app out of winget upgrade --all. You can still upgrade it on purpose with winget upgrade and its ID. There are two stricter kinds:
winget pin add --id Microsoft.PowerToys --version 0.70.*
winget pin add --id Microsoft.PowerToys --blocking
With --version you get a gating pin: upgrades within the range are fine, and anything outside it is held back. The wildcard only works as the last part of the version. --blocking blocks all upgrades of that app until you remove the pin.
To see and remove pins:
winget pin list
winget pin remove --id Microsoft.PowerToys
For a one-off run that ignores plain pins, winget upgrade --all --include-pinned includes them.
Caveats. A pin only stops winget. If the app updates itself, or you install a new version by hand, the pin does nothing about it. The docs are not fully consistent about whether --force can override a blocking pin, so I would not count on either answer without trying it.
Further reading: winget pinning on Microsoft Learn