Save dynamic commands after being created