Now add this:

$rs = $connection.execute("SELECT workst.wSid FROM workst WHERE workst.pcName = '" + @WKSTA + "'")

? @SERROR


watch for those double/single quotes !