Windows の場合。
以下の内容を cap.cmd という名前で保存。
setlocal
set file=/sdcard/%date:~0,4%%date:~5,2%%date:~8,2%-%time:~0,2%%time:~3,2%%time:~6,2%.png
adb shell screencap -p %file%
adb pull %file% .
adb shell rm %file%
endlocal
実行はコマンドプロンプトで cap と入力するだけ。
カレントディレクトリにファイルが出来上がる
パスを通しておくと捗る。