The message on the remote device is visible until it is dismissed by clicking OK.
If the task has additional commands that follow the prompt command, they are not executed until the message is dismissed.
The time between when the prompt is displayed and when the user clicks OK is not included in the calculation of the task running time.