I would like to have a function that pauses for say 60 seconds to wait for user input, if there is no user input, then continue to run, or if there is user input, read the input and continue to run. This is for a continuously running environment with minimal manual intervention. However, sometimes it is desirable to be able to handle human intervention (for example if some problem within the system happened) so that the script can be paused, and after the problem has been solved, can resume.
Timeout seems to suit this purpose, in CMD, but does anybody know of a similar function in Powershell? Thank you!