private/stop/Stop-SessionManagerPlugin.ps1
function Stop-SessionManagerPlugin { [CmdletBinding(PositionalBinding = $true)] param( [Parameter(Mandatory = $false)] [System.Diagnostics.Process] $Process ) if ($Process) { Write-Host 'Stopping session-manager-plugin..' -ForegroundColor DarkGray -NoNewline $Process | Stop-Process -Force -ErrorAction Continue Write-Host 'Done.' -ForegroundColor DarkMagenta } } |