Restart the shell first
The taskbar lives in explorer.exe. Restarting it closes File Explorer windows but leaves running apps alone.
Get-Process explorer | Select-Object Id,StartTime,@{n='MB';e={[math]::Round($_.WorkingSet64/1MB)}}
Stop-Process -Name explorer -Force
Start-Sleep -Seconds 3
Get-Process explorer | Select-Object Id,StartTime