this will give clues … if you see adb: inaccessible or not found again you might need to look at your adb install method. As a first guess, you might try
./adb devices
… or are you trying to do this on the device leading to /system/bin/sh: … adb is for work between a PC and the Android device.
Thank you for your reply. I tried again with the second command and it worked. I’m thinking it didn’t like that my phone went to a lockscreen. However, I got out of that and it still didn’t work. So I started all over and made sure my phone didn’t go to lockscreen and the command worked!