There is no code for this. You're not going to get any kind of progress information from MSIEXEC during the install.
You don't need a batch file for this and, really, you don't even need any code to launch the installation. All you need is the correct command line parameters to show a partial(basic) UI from MSIEXEC during the install:
msiexec /i filename.msi /qb-