Utility function to find PID of the working terminal.exe application Function is created to generate a system call to programmatically close any given application
pid_pattern: * string, pattern value to search application with
Returns
string with system kill command to close selected application
Details
Function is executing a system command to get all processes running on the OS Retrieved data is cleaned and organized to filter on required process Function can also be used to track specific applications defined by the user