Thank You for this script! I have had all kinds of issues with DSTM miner stopping and crashing while using Awesome Miner. It really bugged me that Awesome Miner just dismisses this as "Once it is launched we have no control over it" so what's the point of Awesome Miner then??
I started running this last night and DSTM has crashed once and also had a GPU error which stopped it. This script resolved both issues and only was down for a few minutes instead of probably hours. Great work! I will be donating or upgrading to premium in the near future after testing a bit more.