I am trying to assigned a variable from a search object :
$tes = $ListLookup.Items | where-object {$_.title -eq "TEST"} | sort Title | FT ID
So the above brings back the ID of the item I want. But I want to assign that ID number "4" to a variable.
So I can use it in $listLookup = $List.GetItemById(4) as I am trying to get information via that code.
Hope that make sense.