I'm trying to verify the value of a variable, but no mater what, I can only get the right result if not using the -or
if (!$SER -eq "Y" -or !$SER -eq "N"){
write-host "ERROR: Wrong value for services restart" -foreground "red"
}
or like this
if (-not($SER -eq "Y") -or -not($SER -eq "N")){
write-host "ERROR: Wrong value for services restart" -foreground "red"
}