MSI execwait msiexec solved!
For those of you who tried but could not find a good solution to wait for an MSI installer to finish here's the answer.

start /wait msiexec /i msi_file.msi

The "start /wait" command in Windows will start the msiexec executable and wait for the MSI to finish installing before continuing.