public string ExtractText() { var text = WindowUtils.ExtractTextFromConsoleWindow(ProcessId); text = text ?? WindowUtils.ExtractTextFromWindow(Handle); return(text); }