Man ends up in court after running from police