Add utilities for creating Commands

Change-Id: I4b13c4409fcff204730112a7c898bbd5a1365f0d