At the moment, you are unable to command you pet to attack people who are stealthed, even if you are standing right on top of them with clear sight and they are not moving. You have to break their stealth before your pet will register attack the attack command. I'm not sure at which point this got bugged/broken, but it must have been recent because it was fine a few weeks ago.