A testicular ultrasound scan with duplex (also known as color-coded duplex sonography) uses high-frequency sound waves to visualize the testicles and surrounding structures, including blood vessels, and can help diagnose various conditions like testicular torsion, varicocele, and testicular tumors.