Please refer the following Script which generates the warning message before delete temporary files for the Edge browser with particular time interval which has provided.
Note:
Run as Logged in user
time=r'5 Seconds' #provide the time which you want to show in message box.
t_set=5.0 #provide the required time in seconds as given
Description:
While pop-up message shows if you click YES, it will run the script after given time interval. If you click NO it will not run the Script.
Run the script as logged in user.