You can use the "Read-Host" cmdlet to solicit input from the user.
I'm not sure what you mean by "det" though.
Maybe this is what you're looking for?
$values = 1,2,3,4,5
$x = Read-Host "Give me a number: "
if ($values -contains $x){
Write-Host "Found it!" -ForegroundColor Green
}
else{
Write-Host "Didn't find $x" -ForegroundColor Yellow
}