solved by changing the naming of the file from .txt to .bat and running it using Shell command.. Thanks all.