make_arrange_cmd function

Generate arrange commands from user input