Resolving PowerShell Version Mismatch in Automation Scripts - Resolve Token Expired Messages in Terminal-Resolve 'Permission Denied' Error in PowerShell Settings

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