Office 365 installation stuck with one minute remaining on running package scripts
The ‘running package scripts’ step does take a while and Installer is not able to accurately suggest how long this step will take. My guess is it wasn't ‘hung’ but you didn't wait long enough at that step — it can take numerous minutes and is working hard.

You can forcibly shut down the machine by holding the power button until the machine turns off. This wouldn't usually be necessary, but it probably is now, depending on the steps you took to attempt to interrupt the installation.

I recommend attempting to install Office once again (as a partial installation isn't ideal) and letting the installer work through the steps it requires without attempting to interrupt it.