Frames per task

I have a job running 38 frames. by changing chunk size to 10 i am able to run 4 tasks instead of running multiple jobs. In task render log, their is a line which says, "Plugin rendering frame(s) : 1001 - 1010 " … this shows how many frames for current task

To make it simple,
In Job Properties → Nuke Settings → Script Filename , i am passing a script. To this script, I want to pass "plugin rendering frames " . How does one do that ?