Indirect Inference Based on the Score