GOSHEN, N.Y. (AP) A 28-year-old Hudson Valley man has been sentenced to 18 years in prison for shooting at a man he had a dispute with, narrowly missing a woman and her child, and later engaging police in a standoff.

Gosford Lembhard Jr. of Newburgh was convicted at trial of shooting at a man in a parked car in September 2012. He was free on bail in the case when he was indicted for attempted murder.

When authorities tried to arrest Lembhard, he refused to cooperate and the standoff ensued. Emotions were still running high because police had shot and killed his younger brother earlier that year.

The Times-Herald Record of Middletown reports ( )Lembhard was sentenced Wednesday in Orange County Court for attempted murder, reckless endangerment, and gun possession.

An appeal is planned.