/// <summary> /// Runs specified program with parameters. /// </summary> /// <param name="program">Program name</param> /// <param name="arguments">Program arguments</param> /// <returns> /// A <see cref="string"/> with output command result. /// </returns> public static StringBuilder RunCommand(WinProgram program, string arguments) => RunCommand(program.GetDescription(), arguments);
/// <summary> /// Runs specified program with parameters and options. /// </summary> /// <param name="program">Program name</param> /// <param name="arguments">Program arguments</param> /// <param name="options">Run Program options</param> public static void RunProgram(WinProgram program, string arguments, RunProgramOptions options = null) => RunProgram(program.GetDescription(), arguments, options ?? RunProgramOptions.Default);