[scripts] batchedUpdate: add support for passing in the tail of the log GitOrigin-RevId: 50b573ec4f90026c3c2c660a5313fdd62817dbd9