I have all the details to connect to a particular access point. I have to use that access point only, so all I require is the command to do it.
super late but i hope this'll help anybody who may stumble upon this thread.
if you're trying the adb pull method but received "remote object does not exist", try this:
in the same command prompt box,
adb root to restart adb as root. click enter.adb shell, click enter. makes sure the prompt shows root@[device]:cd /data/misc/wifi click enter.cat wpa_supplicant.conf click enter. this should dump data of WiFi you've previously connected to on your phone, to your pc screen.
these commands worked on my unrooted device after running into the “remote object does not exist” issue.