Script presses enter when windows asks if it can use admin privileges.
When the script is running and types cmd the script presses enter which it takes as no and closes command prompt.
When the script is running and types cmd the script presses enter which it takes as no and closes command prompt.