The close command will allow you to close an open door or container.
If there is more than one door in the room you can specify which one you
wish to close by adding the direction it's in. So if the door was in
the up direction, you would 'close up door'. You will not be able to
check the inventory of a container while it is closed.