If I try adb shell $PWD it reads the working directory of the current system and not the adb device.
How can I read the $PWD in the Android device instead via adb?
You should try something like
adb shell 'echo $PWD'
this will expand $PWD to the current working directory in the device.
