I wrote a RunOnceEx.cmd, tested it, and copied it to an image. When I installed Windows it doesn't run. I can't run it manually either - the command window flashes up for a split second, presumably with an error message. But if I open the same file and copy and paste its contents into a new file, the new file runs perfectly. What is it about the image file that could be different than the copy-paste file?