Public/ps1/Job/Stop-LeftConnectJob.ps1
function Stop-LeftConnectJob{ param($jobParam) $runningProcesses = (Get-Job -ErrorAction SilentlyContinue) | Where-object {$_.Name.Contains(("UblionConnect"+($jobParam.name)))} $runningProcesses | %{ Stop-Job $_.Name Remove-Job $_.Name } } |