Only prompt if an application is running

Hi All,

I am looking to change the script slightly so it will only display the Show-InstallationWelcome if the application is running, if it isn`t, just to complete the upgrade. How is this possible?

Thanks in advance,
Scott

You could utilize the get-process cmdlet.

If(Get-Process <name of process> -ErrorAction SilentlyContinue){<your show-installationwelcome goes here>}

Thank you Pelle.