Hello Erwin Pauwels
Here are the commands for PSWindowsUpdate with PowerShell:
# Install the Windows Update module
Install-Module -Name PSWindowsUpdate -Force
# Import the Windows Update module
Import-Module PSWindowsUpdate
# Check for updates
Get-WindowsUpdate -AcceptAll -Install -AutoReboot
# Restart the system if updates require a reboot
Restart-Computer -Force