Reboot after post install message

Is it possible to set a forced reboot on the last OK button post install?

Here in script.

	## Display a message at the end of the install
	If (-not $useDefaultMsi) { Show-InstallationPrompt -Message 'The new application is installed but requires a reboot, preform a reboot by pressing OK ' -ButtonRightText 'OK' -Icon Information -NoWait }
}
ElseIf ($deploymentType -ieq 'Uninstall')
{

I’ve used “Show-InstallationRestartPrompt” in the past to prompt users to restart.

Show-InstallationRestartPrompt -Countdownseconds 600 -CountdownNoHideSeconds 60

That gives me an error when i place it like this, do you have an example?

Code

Display a message at the end of the install

If (-not $useDefaultMsi) { Show-InstallationRestartPrompt  -Message 'The new application is installed but requires a reboot, preform a reboot by pressing OK ' -ButtonRightText 'OK' -Icon Information -NoWait -Countdownseconds 600 -CountdownNoHideSeconds 60 }

}
ElseIf ($deploymentType -ieq ‘Uninstall’)
{

image

I just hashed out the line like this:

##If (-not $useDefaultMsi) { Show-InstallationPrompt -Message ‘Installation complete.’ -ButtonRightText ‘OK’ -Icon Information -NoWait }

Show-DialogBox -Title ‘App Title’ -Text ‘App installation has completed. Please click OK to restart your computer.’ -Icon ‘Information’
Show-InstallationRestartPrompt -Countdownseconds 600 -CountdownNoHideSeconds 60