Confirmation prompt when you hit X

Is there an extension that would allow you to give a confirmation dialogue box with custom message and Yes and No boxes to click when your using Show-InstallationPrompt?