What is the meaning of Up_to_bat?

Preparing to have or having one's turn to attempt to hit the ball.

in the state of being called upon to perform a task, particularly one for which the performer will be required to demonstrate skill to succeed

Source: wiktionary.org