So if I run this with auto snapshots off. it displays a warning and tells me to press a key to continue, however it does not respond to any keys and the command window auto shuts down as if its coded to auto abort regardless of whats going on.
If I enable auto snapshots I think it works but the auto shutdown of the script occurs, and I think it stops it finishing, so I think thats why its not working on my system.
This is what is shown when the window closes itself. It closes after only about 1-2 seconds.