Is this what you're after?

code:
$Item.Selected = 1