profile.ps1シリーズ第3弾です。 Where-Objectによるオブジェクトフィルタリングを簡略化 &{ $operators = @("eq","ne","ge","gt","lt","le","like","notlike","match", "notmatch","ieq","ine","ige","igt","ile","ilt","ilike", "inotlike","imatch","inotmatch","ceq","cne","cge","cgt", "clt","cle","clike","cnotlike","cmatch","cnotmatch") foreach($operator in $operators) { $filter = @" filter global:?$operator(`$property,`$value) { if(`$_.`$p