This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get the start parameter from the CLI | |
param( | |
[switch]$Start, | |
[switch]$Shutdown | |
) | |
# stop a list of processes | |
function Stop-ProcessList([String[]] $processes) { | |
foreach ($process in $processes) { | |
if (Get-Process -Name $process -ErrorAction SilentlyContinue) { |