Mandatory强制参数
function Test-m {
param(
[Parameter(Mandatory=$true)]
$name
)
"Please entered $name."
}
Test-m
function Test-m {
param(
[Parameter(Mandatory=$true)]
$name
)
"Please entered $name."
}
Test-m