Sets properties for the object in 'object' property.

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

var b = Batch.newBatch(function(ctx) {
    console.log("TM: " + ctx.object.get("TM"));  // 5979
    console.log("MK: " + ctx.object.get("MK"));  // 23979
}).setObjectProperties({
    TM: 5979,
    MK: 23979
});

b.start();