Hi there @HsDev,
You can use the following:
strProcessName = "javaw"
If System.Diagnostics.Process.GetProcesses.AsEnumerable().Any(Function (prcRunning) prcRunning.ProcessName.ToLower.Trim.Equals(strProcessName.ToLower.Trim)) Then
Kill Process - ProcessName = strProcessName.ToLower.Trim
End If