如何从循环数组pscustomobject中删除行?
如果我在循环中使用它,则会出现错误:
$a = $a | where {condition to remove lines}
Run Code Online (Sandbox Code Playgroud)
出现以下错误
Method invocation failed because [System.Management.Automation.PSObject] does not contain a method named 'op_Addition'.
Run Code Online (Sandbox Code Playgroud)
任何从数组中删除行的建议。