According to Microsoft's documentation, read-host
lets the user type some input, and then press enter to continue. Not exactly the correct behavior if you want to have "Press any key to continue". (Wait... where's the Any key?!)
Is there a way to accomplish this? Something like read-char
?
I've tried searching for "single character input" and "powershell input" to see if I could find a list of all ways to get input without much luck. And several Stack Overflow questions that looked hopeful use read-host
which doesn't actually work for "press any key..." functionality.