Check Environment.UserInteractive instead of /c argument.