function isNumeric ($x) { try { 0 + $x | Out-Null return $true } catch { return $false } }