diff --git a/scripts/template.ps1 b/scripts/template.ps1 index 6845fca..6c4f8cc 100644 --- a/scripts/template.ps1 +++ b/scripts/template.ps1 @@ -1,15 +1,24 @@ # load ActiveDirectory module -Try -{ - Import-Module ActiveDirectory -ErrorAction Stop -} -Catch -{ - Write-Warning $_ - Break -} + function Show-Menu { + begin + { + try + { + Import-Module ActiveDirectory -ErrorAction Stop + } + catch + { + Write-Warning $_ + break + } + } + + process + { + + } }