Check PowerShell Version Before Running Scripts - Fix Windows Activation Command Error 0x80070002-How to Break a Windows Login Loop Caused by Registry Edit

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