Hi,
I would like to write a pipeline function to highlight objects for a certain condition, Is there a way I can do this -
Basically I like to implement Highlight-Object which can take a script block for condition and color to highlight
get-service | Higlight-object {$_.status -eq 'Stopped'} -FColor Red
I am hopping to implement this for any input object the way where-object and Format-Table works
Thanks,
Shiju Samuel