Where does the bug appear (feature/product)?
Cursor IDE
(only IDE, Cursor CLI is not affected)
Describe the Bug
I have PowerShell 7 terminal configured as a default everywhere: Cursor settings (default profile, automation profile, integrated terminal), it’s on the top of my env PATH, it’s the default Windows terminal profile, etc. Literally nowhere I have PowerShell 5 selected.
And despite of all that, Cursor Agents refuse to use PS7 and somehow keep using PS5. As a result, most shell commands executed by Agents fail as most models use new PS7 syntax (i.e. && over ;).
Steps to Reproduce
Ask the Agent: “Run $PSVersionTable.PSVersion”
Operating System
Windows 10/11
Version Information
Version: 3.7.19 (system setup)
VS Code Extension API: 1.105.1
Commit: 80c653c2c3528e65016a0d304b54486084b470b0
Date: 2026-06-07T01:42:56.126Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.256
OS: Windows_NT x64 10.0.26200
For AI issues: which model did you use?
Composer 2.5
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor
Screenshot

