Gets the underlying batch.

import Batch = require("nativescript-batch");

var b = Batch.newBatch(function(ctx) {
    ctx.log("Hello!");
});

b.setBatchName("My Batch");

b.addLogger(function(ctx) {
    console.log("[" + ctx.batch.name + "] " + ctx.message);
});

b.start();