Windows has a command for installing (some) updates called “winget”. To see available updates, run the command
winget upgrade
and it will list installed programs and if there are updates available. To perform the updates, run the command
winget update -h --all