Iveは文字列を取り込むpowershell関数を作成しました。イムは、文字列のparamの文字数が4以上であることを検証しようと、私はPARAMをチェックするたびしかし、カウントは常に1である、誰もがpowershell関数への入力を確認する
function DeleteSitesWithPrefix($prefix){
if([string]::IsNullOrEmpty($prefix)){
Write-Host "Please provide the name of the csv file to use"
return
}
if([string]::$prefix.Length -lt 4){
Write-Host "Please provide a prefix of 4 or more digits"
return
}
... '? –