Fix PowerShell 502 Bad Gateway in IIS: Step-by-Step - NuGet Dependency Conflict in PowerShell Fix-Troubleshooting Windows Search Permission Errors

Final checklist
- Confirm that the same symptom is gone after a restart or refresh.
- Keep the smallest working change and undo temporary diagnostic settings.