Path to ADB on Windows

C:\Users\USERNAME\AppData\Local\Android\android-sdk\platform-tools

3 minute recording on a Android

adb shell screenrecord --size 1280x720 --bit-rate 8000000 --time-limit 180 /sdcard/test.mp4

30 Second Recording on Android

adb shell screenrecord –time-limit 30 /sdcard/test.mp4