Default bat script to check if android is rooted

can anyone help me out with an
adb bat script that will check weather android is rooted

root files are located
superSU -- /system/app
su binary -- /system/xbin symlinked to /system/bin

i can find functions but nothing that is adb bat script.

any help would he appriciated.