private static void RunScript(string[] args) { InitialiseDependencies(args[0], false); var fullFilePath = args[2]; var script = new Script { Source = FileHelper.LoadDataFile(fullFilePath) }; _executionEngine.Compile(script, fullFilePath, _gameConfiguration.GetScriptFromIdHelper(MessageIds.CommonCode).Source); if (script.HasCompileErrors) { _console.WriteLine(script.CompileErrors, ConsoleColor.Red); } else { // TODO Needs to be context sensitive to type of script _executionEngine.ExecuteLoopScript(script, "Test Script"); } }