A man charged over an alleged wild pursuit where officers took gunfire has fronted court – with police alleging in court documents why the 20-year-old was trying to break into a home while armed.