Fix PowerShell Invalid Configuration Group Policy Error - Resolve 'Not Recognized' Error in PowerShell Scripts-Access Denied in Task Scheduler: How to Fix

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