Resolving PowerShell Version Mismatch in Automation Scripts - Windows Security Login Loop Fix-Resolve Task Scheduler 0x80070005 Access Denied

Result check
- Keep one change per test run so you know which step helped.
- Undo temporary changes after the issue is confirmed.