Command Dispatcher Pattern 1# CommandDispatcher.ps1 2param( 3 [Parameter(Mandatory=$true, Position=0)] 4 [string]$Command, 5 6 [Parameter(ValueFromRemainingArguments=$true)] 7 $Arguments 8) 9 10switch ($Command) { 11 "start" { 12 Write-Host "Starting service..." 13 # Your start logic here 14 } 15 …
Read MoreCollection of useful shell commands and scripting techniques across different shells and platforms. Topics Bash Commands & Scripting - Linux/Unix shell scripting and useful commands PowerShell Commands - Windows PowerShell scripting and cmdlets CMD Commands - Windows Command Prompt commands Zsh/Sh Commands - Z …
Read More