function Write-Log Out-File -FilePath $logFile -Append Write-Host $Message
winget upgrade "Google Chrome"
To update every application on your system that has an available update: powershell update command
If you only want to install a specific security patch (e.g., KB5001234): powershell update command
Help is updated by default. It must be run explicitly or via scheduled task. powershell update command
# Update help for all modules Update-Help