Code backup
This commit is contained in:
2026-05-10 16:59:01 +02:00
commit 368d6fafea
796 changed files with 315310 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
function Show-Menu {
param (
[string]$Title = 'My Menu'
)
Clear-Host
Write-Host "================ $Title ================"
Write-Host "1: Press '1' for this option."
Write-Host "2: Press '2' for this option."
Write-Host "3: Press '3' for this option."
Write-Host "Q: Press 'Q' to quit."
} do {
Show-Menu
$selection = Read-Host "Please make a selection"
switch ($selection)
{
'1' {
'You chose option #1'
} '2' {
'You chose option #2'
} '3' {
'You chose option #3'
}
}
pause
}
until ($selection -eq 'q')