# The built-in terminal in Cursor reports PowerShell script syntax errors when executing any command on Windows 10, causing no commands to run.

**URL:** <https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075>\
**Category:** Bug Reports\
**Created:** [October 11, 2025, 3:38pm UTC](https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075 "2025-10-11T15:38:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![user825](https://avatars.discourse-cdn.com/v4/letter/u/a3d4f5/32.png) [@user825](https://forum.cursor.com/u/user825)\
**Post date:** [October 11, 2025, 3:38pm UTC](https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075/1 "2025-10-11T15:38:04Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

Environment Information:Operating System: Windows 10 (Version 10.0.26100)Shell: PowerShell v1.0Working Directory: E:cursor\_testonecursor\_大报告代码Cursor Version: [Please fill in your version]Steps to Reproduce:1. Open Cursor2. Launch Cursor on a Windows 10 system3. Open any project4. Open a project directory containing Chinese characters in the path (e.g., E:cursor\_testonecursor\_大报告代码)5. Use the AI assistant to execute any terminal command6. Ask the AI in the chat to execute any simple command, for example: Or:7. Observe the errorObserved Behavior:- Command execution fails, returning Exit code: 1- A large amount of PowerShell syntax error messages are outputTest Command Examples:Actual Result: All commands fail, returning the same PowerShell script syntax errorsExpected Result: Commands should execute normally and return results

### Steps to Reproduce

Environment Information:Operating System: Windows 10 (Version 10.0.26100)Shell: PowerShell v1.0Working Directory: E:cursor\_testonecursor\_大报告代码Cursor Version: [Please fill in your version]Steps to Reproduce:1. Open Cursor2. Launch Cursor on a Windows 10 system3. Open any project4. Open a project directory containing Chinese characters in the path (e.g., E:cursor\_testonecursor\_大报告代码)5. Use the AI assistant to execute any terminal command6. Ask the AI in the chat to execute any simple command, for example: Or:7. Observe the errorObserved Behavior:- Command execution fails, returning Exit code: 1- A large amount of PowerShell syntax error messages are outputTest Command Examples:Actual Result: All commands fail, returning the same PowerShell script syntax errorsExpected Result: Commands should execute normally and return results

### Screenshots / Screen Recordings

 ![屏幕截图 2025-10-11 232147.png](https://us1.discourse-cdn.com/cursor1/original/3X/0/a/0af279dd5937d1240197b0b96c54bb9e694199fd.png)

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

版本: 1.7.44 (system setup)  
提交: 1.99.3  
日期: 9d178a4■■■89981b62546448bb32920a8219a5d0  
Electron: 2025-10-10T15:43:37.500Z  
ElectronBuildId: 34.5.8  
Chromium: undefined  
Node.js: 132.0.6834.210  
V8: 20.19.1  
OS: 13.2.152.41-electron.0

### For AI issues: which model did you use?

Claude-4.5

### Does this stop you from using Cursor

No - Cursor works, but with this issue

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [October 11, 2025, 4:29pm UTC](https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075/2 "2025-10-11T16:29:30Z")

</div>

Hey, thanks for the report. This looks like a character-encoding issue when the working directory contains non-ASCII characters.

Try this first:

1. Press `Ctrl+Shift+P` → “Terminal: Kill All Terminals”
2. Fully close and restart Cursor
3. Press `Ctrl+Shift+P` → “Terminal: Create New Terminal”
4. Check if AI commands work now

Alternative workaround (if restart doesn’t help):  
Add a UTF-8 rule so AI runs terminal commands with UTF-8:

```auto
UTF-8 encoding setting when executing a terminal command: whenever a terminal command is executed, $OutputEncoding = [Console]::OutputEncoding = [System.Text.Encoding]::UTF8 first and then run together

```

---

<div class="post-metadata">

**Author:** ![user825](https://avatars.discourse-cdn.com/v4/letter/u/a3d4f5/32.png) [@user825](https://forum.cursor.com/u/user825)\
**Post date:** [October 11, 2025, 4:46pm UTC](https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075/3 "2025-10-11T16:46:04Z")

</div>

How do I add a rule? I tried the first method, it didn’t work, I’m going crazy.😭

---

<div class="post-metadata">

**Author:** ![user825](https://avatars.discourse-cdn.com/v4/letter/u/a3d4f5/32.png) [@user825](https://forum.cursor.com/u/user825)\
**Post date:** [October 11, 2025, 4:48pm UTC](https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075/4 "2025-10-11T16:48:04Z")

</div>

I have already added the rules, but it still doesn’t work. It’s still garbled, and this error is reported.

 ![屏幕截图 2025-10-12 004725](https://us1.discourse-cdn.com/cursor1/original/3X/e/9/e9811cbee7f0586af9ed1761c96b4e5de166d563.png)

---

<div class="post-metadata">

**Author:** ![user825](https://avatars.discourse-cdn.com/v4/letter/u/a3d4f5/32.png) [@user825](https://forum.cursor.com/u/user825)\
**Post date:** [October 11, 2025, 4:51pm UTC](https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075/5 "2025-10-11T16:51:39Z")

</div>

I don’t think it’s because of PowerShell, but because every time it opens, it’s the Cursor terminal, not PowerShell.🥹

 ![屏幕截图 2025-10-12 005011](https://us1.discourse-cdn.com/cursor1/original/3X/1/a/1a9a1b9e505c65d920e6f7070fdc1984d5920898.png)

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [October 11, 2025, 5:15pm UTC](https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075/6 "2025-10-11T17:15:33Z")

</div>

I see that your terminal shows “Cursor” not “PowerShell”, that’s the new terminal tool for Agent.

Try this setup:

1. Open Cursor Settings `Ctrl + Shift + J`
2. On the Chat tab, find “Legacy Terminal Tool”
3. Enable “Legacy Terminal Tool”
4. Press `Ctrl + Shift + P` → “Terminal: Kill All Terminals”
5. Fully restart Cursor
6. Open a new terminal and test the AI commands

This should restore the standard PowerShell and correctly apply the encoding settings.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/d/c/dc465e997f34ae516d43753a660c95841843251b.png)

---

<div class="post-metadata">

**Author:** ![user825](https://avatars.discourse-cdn.com/v4/letter/u/a3d4f5/32.png) [@user825](https://forum.cursor.com/u/user825)\
**Post date:** [October 12, 2025, 3:42am UTC](https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075/7 "2025-10-12T03:42:50Z")

</div>

Oh my gosh! Thank you so much! That’s enough!🥹 🥹 🥹

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [November 3, 2025, 3:43am UTC](https://forum.cursor.com/t/the-built-in-terminal-in-cursor-reports-powershell-script-syntax-errors-when-executing-any-command-on-windows-10-causing-no-commands-to-run/137075/8 "2025-11-03T03:43:31Z")

</div>

Closed on November 3, 2025, 3:43am UTC

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.
