Ms Roberts, originally from Auckland but now in Devon, was concerned about the risk of brain damage as a result of the procedure.
The treatment has the backing of her estranged husband, Ben.
Ms Roberts told the court she was "not persuaded of the need and not persuaded of the urgency" of the surgery, the Guardian reported, and said she needed more time to get experts from abroad she claimed could challenge the views of British experts.
Justice Bodey said while he sympathised with Ms Roberts, he agreed with medical professionals the surgery was required "extremely urgently".
"It is obvious and known to everyone that all operations carry risks and this is no exception," he said, the Daily Telegraph reported.
"But taking this on balance, against the expected gains to Neon in the unhappy position he now finds himself in, I am quite satisfied that surgery is in his best interests and I shall make a decision accordingly so it can go ahead."
Justice Bodey told the court he would likely make a ruling by the end of the week on whether further treatment, including radiotherapy, should be taken, BBC News reported.
The court was adjourned until Thursday (UK time).
- nzherald.co.nz