A 30-year-old man with no significant past medical history presents to the emergency department with sudden onset severe testicular pain that started 2 hours ago. He also reports nausea. On examination, the left testis is swollen, tender, and lies higher than the right with a horizontal lie. Cremasteric reflex is absent on the left. What is the most appropriate immediate management?