I have this code for executing a command line process:
public ProcessResult ExecuteCommand(string command, string startdir, string arguments = "") {