module Mixlib::ShellOut::Windows

def inherit_environment

def inherit_environment
  result = {}
  ENV.each_pair do |k, v|
    result[k] = v
  end
  environment.each_pair do |k, v|
    if v.nil?
      result.delete(k)
    else
      result[k] = v
    end
  end
  result
end