Section 319, CrPC, which envisages a discretionary power, empowers the court holding a trial to proceed against any person not shown or mentioned as an accused if it appears from the evidence that such person has committed a crime for which he ought to be tried together with the accused who is facing trial.
Any challenge against this decision before high court may not be entertained.
You can challenge the case during trial proceedings