public TaskResult<?> runScript(SessionContext $, String script) {
final String tempPath = $.var($.bear.randomFilePath).getTempPath("mongo_", ".js");
WriteStringResult result = $.sys.writeString(script).toPath(tempPath).run();
if(!result.ok()){
return TaskResult.value(result);
}
CommandLineResult<?> lineResult = $.sys.captureBuilder("mongo " + $.var(connectionString) + " " + tempPath).run();