created a command object function to slim down the typing neccessary to use one