Perform user interactions in the system context
Usage of ServiceUI
ServiceUIx64.exe can be used to execute a certain part of a script in the user context, even though you execute the main script in the system context.
ServiceUI.exe -process:TSProgressUI.exe %windir%\sysnative\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -NoProfile -ExecutionPolicy Bypass -nologo -File <scriptpath>
Link collection
Use ServiceUI With Intune To Bring SYSTEM Process To Interactive Mode HTMD Blog (anoopcnair.com)
How to display a custom window in SCCM Task Sequence using PowerShell | Slightly Overcomplicated