I just figured it out! I sifted through old API & Programming threads and found this as a solution. The modified script looks like this:
const fibery = context.getService("fibery");
for (const entity of args.currentEntities) {
await fibery.createEntity("Estimate System Test/Material Pricing", {
"Code": entity["Code"],
"Cost": entity["Current Average"],
});
}
Thank you @Chr1sG and @tpaktop for your help! I will leave to template link to the space if anyone wants to mess with it, I think it turned out pretty cool! Estimate System Test — Fibery