How do you run a command using cmd (Windows 10) in java, using admin privileges, but without opening the program with admin privileges.
For example I would want to run a command like shutdown /i, this command does not need admin privileges but others I may run will.