Factory reset phone with bottom part of touchscreen not working so I can't set it up. ADB functions not working properly
From what I've found there are certain adb commands which do not work in recovery mode. adb shell wm commands are among those. 

When I tried this on the other phone it was with it open to the main launcher with adb enabled through the settings.

For anyone else with a similar issue, I believe the only solution is to get a usb to micro usb converter and connect a mouse to your device for the set up, and then enable adb through the settings.