$Shell = (Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\" -Name Shell).Shell
$Target = ((Get-ChildItem 'C:\Windows\WinSxS\amd64_microsoft-windows-explorer_31bf3856ad364e35_10.0.22621*').FullName)[-2] + '\explorer.exe'
if ($Shell -ne $Target) {
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\" -Name Shell -Value $Target
& taskkill /f /im explorer.exe
& explorer.exe
}