private JResult ExecuteWithSettings(ServiceSettings s, string dir, string[] cmd) { var settings = Path.Combine(dir, "settings.xml"); s.Serialize(settings); Console.Out.WriteLine("Settings: {0}", s); var r = JetServiceCommandRunner.ExecuteCommand(dir, ValidateCommandName, "/settings=" + settings + " " + string.Join(" ", cmd)); Console.Out.WriteLine(r.LogText); return r; }