public/Test-Id.ps1
1 2 3 4 5 6 7 8 9 10 11 |
function Test-Id { param ( # The value to be tested [Parameter(Mandatory)] [string] $Value ) process { $Value -match "^[\d]+$" } } |