Your previous Dr. should be able to write a script.
ERs generally don't write prescriptions for chronic conditions. Especially psychiatric meds because they can't diagnose a psychiatric condition. The only thing you would be able to do is claim you are having suicidal ideations in the ER and they will get the psychiatrist to come see you/admit you.
Thanks! Your answer is awaiting moderation.