Check Environment.UserInteractive instead of argument