Adb shell dumpsys window | findstr -E 'mCurrentFocus'

Hi!

Please how can I get the package name and the activity name of a certain page on the emulator,
this command :

adb shell dumpsys window | findstr -E ‘mCurrentFocus’

on Windows 11 doesn’t work,

thanks,