A Spennymoor driver who took police on a dangerous eight-minute pursuit when panicked when they tried to pull him over, a court heard.