adb commands code example
Example: close adb shell
run cmd admin
C:\Users\'your username'\AppData\Local\Android\Sdk\platform-tools
adb kill-server and then adb start-server
run cmd admin
C:\Users\'your username'\AppData\Local\Android\Sdk\platform-tools
adb kill-server and then adb start-server