Java universal commands

I’m writing a application which I would like to be able to do certain tasks with the computer. As an example I could use: runCommand(“shutdown.exe”, “-s -t 01”); to shutdown, but that would only …