Added process:environment command.

Resolves #1764.