Add or update an environment variable

Creates a new environment variable or updates an existing one within the specified context.