Someone have a script .bat for reboot silentarmy-cywin on windows ? I have some crashs

I'd like to see a linux script for rebooting after GPU crashes. I don't know how to have the script detect a GPU crash so right now I just am using a script that restarts the rig and miner every hour or so. But it would be much more efficient if it only rebooted the computer when a GPU crashed.