First time user here but basically this is what I have been trying to figure out how to do for the past couple of days and I am now stuck.
$ImaginaryTestCase = @('Ted', 'Bill', 'Tom', 'Bob')
$ImaginaryTestCase -Contains 'Bill'
This should output as true, the issue I am having is that I need to take that True output, throw it into a file that says " Bill: True" in that text file. I know I can get the True Statement to come out and output easily to a file using Output-File but I would like to modify it before it goes to that point.
What do I need to do to make that happen?