Apologies if I'm explaining this poorly -- I can't think of the right words to describe what I'm looking to accomplish.
I'm trying to extract values from a PowerShell table object that looks like this:
Id Value
1 apple
2 banana
3 carrot
4 cherry
Where the Value column value is "apple", I want to extract the "1" into a variable called "$apple".
I would much appreciate if someone could help me with the syntax for this.