Skip to content

{command} is not recognized as an internal or external command, operable program or batch file. in PowerShell 7 #95

Open
@JoanComasFdz

Description

@JoanComasFdz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions