have you tried Show-InstallationRestartPrompt?
Show-InstallationRestartPrompt
FYI: There are a few caveats that people fall in all the time:
Help with EXE and shut down commands - The Toolkit / General Discussion - PSAppDeployToolkit Community