for access to shell can use:
$ adb tcpip 5555
$ adb connect 192.168.0.174:5555
$ adb shell
for screenshots can use:
$ adb shell screencap -p /sdcard/screen.png
$ adb pull /sdcard/screen.png
$ adb shell rm /sdcard/screen.png
to screen record can use:
$ adb shell screenrecord /sdcard/screen.mp4