For installing and updating applications in PowerShell Chocolatey is maybe worth a try:
https://chocolatey.org/
Here you can search wich packages are available from the Chocolatey repository:
https://chocolatey.org/packages
And this is maybe helpful to install Windows Updates via PowerShell:
https://www.techrepublic.com/article/how-to-use-powershell-to-manage-microsoft-updates-on-windows/
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten