you can execute CMD commands using Process class in C#
Process p = new Process();
p.StartInfo = new ProcessStartInfo("cmd.exe");
p.StartInfo.Arguments = 'findstr /x /c:"computer help" *.txt';
p.StartInfo.WorkingDirectory = workingDirectory;
p.StartInfo.ErrorDialog = true;
p.StartInfo.UseShellExecute = false;
p.Start();
p.WaitForExit();
p.Close();