Removing Steam games from Control Panel

PowerShell script
It's pretty annoying when you're trying to find an actual piece of software in Windows, and Control Panel > Programs and Features shows you all the Steam games installed since OS reinstall.
Found on: https://nickolas.gupton.xyz/2021/03/05/remove-steam-games-from-control-panel
Run in PowerShell (as admin)

$counter = 0;
foreach ($steamGame in (reg query HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall | findstr /C:"Steam App")) {
reg delete $steamGame /f;
$counter += 1;
}
foreach ($steamGame in (reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall | findstr /C:"Steam App")) {
reg delete $steamGame /f;
$counter += 1;
}
if ($counter -NE 0) {
Write-Host ("Removed " + $counter + " games from Control Panel and Apps list.");
} else {
Write-Host ("No games found.");
}