Snippet for taking a screenshot of the connected device with adb and putting the image in a specified folder with current date/time as filename.
alias screenshot='adb exec-out screencap -p > PATH_TO_FOLDER/$(date +"%Y-%m-%d_%H-%M-%S").png'
This will produce a file called: 2023-01-01_12-30-30.png
(if called 1/1/2023 at 12:30:30)