Add environment:metadata command

Re-opening #180 with the ability to set properties