Fix 'Running Scripts Is Disabled' Error in PowerShell - Fix 'Could not get lock /var/lib/dpkg/lock' Error on Ubuntu/Debian-Troubleshoot 502 Bad Gateway with Curl Commands

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