Run Show-InstallationWelcome only when apps need to be closed

I always thought Show-InstallationWelcome would not show if all applications listed were already closed. Please note that some applications have multiple instances running at the same time or are restarted automatically. I ran into this and I ended up using 2 lines of Show-InstallationWelcome. One prompting the user to close many apps and the other to forcibly and silently close the one that would not die.