Updated run method to allow for short and long commands