A Bathurst court has heard how a woman punched a police officer before she tried to flee from him.