command on adb to android emulator

im sorry.. im new here.. i don’t know where to start. i want to run this kind of command in emulator (android). the problem is, its not bind.. maybe the bind command is wrong.. pls help.. tq

@echo off

adb.exe kill-server
adb.exe start-server
adb.exe devices
adb root
adb remount

adb shell sleep 2

adb shell am start /com.abcgames.ab1.SplashActivity filter

adb shell sleep 3
adb shell pidof

adb shell sleep 6
adb shell for i in $(pidof | awk '{print $1}'); do mount --bind /proc/2/maps /proc/$i/maps; done