when a window is added to taskbar, get the pid to retrieve the exec cmd