WshShell gives you a reference to several commands and environment variables within windows. When dealing with C# you use different things to retrieve the different variables/commands. For example WshShell.Run translates to Process.Run. System.Environment.GetEnvironmentVariable can be used to get environment variables... So the actual answer depends on what you want to do.