How to install winget, then paste this: winget install -e --id NickeManarin.ScreenToGif
On Windows 11 and recent Windows 10, App Installer from the Store usually provides winget. If you do not have the Store, use aka.ms/getwinget. After first login, if winget is still missing, Microsoft's Learn page uses the register command, then you can install ScreenToGif with winget.
Official docs: learn.microsoft.com winget.