The district attorney's stunt of accusing Frost in open court also wouldn't fly, in real life she'd be sanctioned for belting out the accusation in court when she could have easily called a sidebar. Also the break in couldn't legally be factored into sentencing without proof she was directly involved, evidence of foul play wouldn't be enough alone.
The entire process is also displayed incorrectly. The attorneys don't request a certain sentence, you have to submit a recommendation before the sentencing hearing, and to recommend an atypical sentence requires a motion and at the very least a separate hearing on whether or not the proposed sentence is constitutional. Also the length of Frost's prison term is completely at the judges discretion, a request from the defendant and the wishes of the prosecutor don't really change anything, so Cecile's throwing her own words back at her was completely unnecessary.
A court absolutely cannot require or compel a person to take 'any' type of drug, medication included, unless its been fully tested and approved by the FDA, a process which takes years, while the meta cure hasn't even existed that long. It's also not even within a Judges prerogative to issue a penalty that isn't ratified by by legislation.
Even if the judge did rule that way, it would never make it past an appeals court, and Cecile could have appealed it all the way to the Supreme Court if necessary, which would take decades, all while Frost was out on continuing bail.
Cecile allowing Frost to enter a guilty plea without a pre-negotiated sentencing agreement is rank incompetence for any defense attorney.
Frost is shown wearing power-dampening cuffs, which shouldn't work on her as they solely affect dark matter; though its within the realm of possibility she only wore the cuffs to make people feel safer.
The prosecutor says only Killer Frost could have had motive to destroy the meta cure, it seems she forgot about the hundreds of meta criminals in Central City who probably wouldn't be too keen on the possibility of having their powers taken away.
Frost isn't a dark matter-based meta, so the meta-human cure should not work on her; thus Carla Tannhauser was incorrect when she informed Caitlin about the preliminary results of testing it in Frost's DNA.