标签: c# powershell
命名空间:System.Management.Automation
尝试使用自动化名称空间中的C#在Powershell中匹配对象
C#
Powershell
对此进行了尝试,但是它返回-如未知参数一样
PowerShell shell = PowerShell.Create("Get-Childitem"). AddCommand("where-object { $_.Name -like "*a" }");