running the render() function in a post/pre render callback?

Hi, I am trying to run a script where I loop though render() a few times to create and save an image.

I'd like to run the script through backburner, but I am having trouble. It seems like having render() in a #postrender callback causes an error "Unable to open renderer, possible recursion"

even running something like this:

fn rndr =
(
render()
)
callbacks.addScript #postRenderFrame "rndr()" id:#render_call

throws the error.

Is it possible to run the render() function inside of a callback without getting this error? like saying, hey use render() in the script but disregard the callback?

Thanks