PowerShell 术语“which”不被识别为 cmdlet 函数脚本文件或可操作程序

wan*_*ngt 2 powershell

我正在使用 PowerShell 并想要执行which命令,但是我看到此错误:

which : The term 'which' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path
was included, verify that the path is correct and try again.
At line:1 char:1
+ which xxxxxx
+ ~~~~~
    + CategoryInfo          : ObjectNotFound: (which:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)

我在谷歌上进行了搜索,但没有针对我的问题的具体答案。以前有人遇到过同样的错误吗?我该如何修复它?

cal*_*hiz 5

根据评论整理答案:

which是 Linux 的标准命令,但通常不存在于 Windows 上。

等效的命令是Get-Command,或者如果您有它,则可以运行where.exe