Rogues don’t have enhanced stealth detection as a class, not sure where you’re getting that from. Every class can increase their chances of detecting stealth with the battleground potion.
#showtooltip Sap
/console targetNearestDistance 10.000000
/targetenemy [noharm][dead]
/console targetNearestDistance 41.000000
/cast [harm,nodead] Sap
Probably a bit dated code-wise but that is the button I spam when I suspect there might be a stealthy class around. Substitute Sap for some other instant ability. Doesn’t work as well as it used to but it does work.