For example, I get the result of Query User by calling powershell.exe:
let output = Command::new("powershell.exe")
.arg("Query")
.arg("User")
.output()?;
// Parse the output in std...
Unfortunately, doing so will bring up a powershell window (although it will soon disappear).
Is there a way to call the console program without displaying any windows?