Predict Mounted ISO Drive Letter?

Hello,
I run a few PowerShell scripts that attempt to install software from a mounted ISO file. For this they need the full path to the installer (e.g. Z:\software\installer.msi).

How can I specify or otherwise determine location the needed ISO has been mounted to for software installations?

Thanks!

I would loooooove to know this solution. The ISO gets mounted to a reliable letter but I really wish I didn’t have to hard code that.

Is there a way to use the drive label instead of the letter?