Delete the Word Update PKG in the temp directory Wait installer -pkg '/private/tmp/Microsoft_Word_15.19.1_160212_Updater.pkg' -target / Move the downloaded Word Update PKG to the temp directory wait /usr/bin/killall -9 'Microsoft Word' Uncomment the next line to forcibly close Word by killing the process Kill all Word processes to forcibly close Word Delete the Word Update PKG in case it exists