PowerShell Command Not Found but Works in CMD - Resolve Error 502 on Windows Update-Windows Security Cache Configuration Guide

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