Convert command creation to new syntax