Two police officers were targeted when a van was driven at them during an investigation in Larkhall.