foregroundProcessName
Reads the Unix foreground process-group leader or uses the newest live descendant on Windows. The Windows result is a heuristic and may identify a background child. Returns only a basename, or null on closure/unavailable metadata; applications inside SSH or WSL are not inspected.