When I lock or sleep my computer and unlock it again later, one of my three monitors does not always turn on. Settings -> Display has a "Detect" button that turns on all monitors handily (though merely navigating there by using "Rearrange multiple displays" usually wakes up all monitors, so it probably runs detection on open). However, I would rather not have to open Settings every time.
Optimally, Windows would detect all monitors automatically when the computer wakes up, but I suspect that Windows would have implemented this if it were that easy. The most obvious alternative to me is to write a script using the command the Detect button triggers, then binding a key combination to a shortcut to that script.
What command can I call from a script to do the same thing as clicking the "Detect" button in Display Settings? Or is there a simpler way?