Fix Missing Windows Security Real-Time Protection Toggle - Fix Windows Search Configuration Issues-Resolving 502 Bad Gateway with Invoke-WebRequest

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