Sorry my question but isn't easyer to disable the script when you want your monitor to go to standby?
Also you can set a number of flashes you want.. so the script will flash and than stop... so your monitor will go to stanby too
AND, no the greatest idea, still you can turn your monitor off