This isn't DOS, it's the Windows recovery feature that happens when it fails to boot.
Avast did a boot scan in dos, the computer ran out of battery, then windows resumed with a black screen and a white blinking underscore at the top (which I'm thinking is dos). After that it switched to the recovery feature.
Everything is fixed now, windows managed to start.