Fix PowerShell Login Loop: Permission Denied Errors - How to Resolve Port Already Allocated by Defender-How to Fix 'Permission Denied' in PowerShell Scripts

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