refactoring GetEnvironmentVariables into ProcessExtensions
adding command line to process object. Fixes #1289