use shell script instead of batch file