conditionally use cmd.exe to elevate