Yes, you can. In Windows 11/10, you could initiate Windows Updates via PowerShell as well as the Command Prompt.