Fix Microsoft Teams 504 Gateway Timeout Sync Issues - Fix PowerShell Port Already Allocated After Reboot-PowerShell Not Recognized as Internal or External Command

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