BuilderIO / BuilderIO/ai-shell
{command} is not recognized as an internal or external command, operable program or batch file. in PowerShell 7
- Dominant language
- TypeScript
- Stars
- 5.3k
- Forks
- 377
- PR merge metrics
- No merged PRs in 30d
Description
I do not seem to be able to run commands in PowerShell 7.3.6 in Windows Terminal 1.17.11461.0 on Windows 10 21H2 (19044.3208).
Example:
```
❯ ai get all image files
┌ AI Shell
│
◇ Your script:
Get-ChildItem -Path "C:\Path\to\folder" -Include *.jpg, *.png, *.gif -Recurse
•
│
◇ Explanation:
- Set the path to "C:\Path\to\folder"
- Include only files with extensions *.jpg, *.png, and *.gif
- Enable recursion to search for files in subfolders as well
•
│
◇ Run this script?
│ ✅ Yes
│
└ Running:
Get-ChildItem -Path "C:\Path\to\folder" -Include *.jpg, *.png, *.gif -Recurse
'Get-ChildItem' is not recognized as an internal or external command,
operable program or batch file.
```
Contributor guide
Research direction
Reproduce the example with PowerShell 7.3.6 in Windows Terminal 1.17.11461.0 on Windows 10 21H2, then trace the CLI's command-execution entry point. The issue names no source file or test; done means the generated Get-ChildItem command runs in PowerShell without the cmd.exe-style error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell, typescript
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100