This command is used to dump android device state
adb shell dumpstate
adb shell dumpstate
It is a command that is used to dumb the current working state of android device.
If you are facing issues running the adb shell dumpstate command, it is probably because you are trying to run it on Android 10. This version of Android is not yet stable for the command so yu should trying running it on a lower version.
No, just the command adb shell dumpstate gets the job done without the need to include or replace anything.