Check PowerShell Version Before Running Scripts - Command Prompt Won't Reset to Defaults – Fix-Restore Windows Search After a System Update

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