Very cool idea to interact with the puzzle using commands. One idea I had is maybe you could've somehow added the option to 'loop' the commands to move the numbers multiple spaces. Imagine if you could enter a command like this:
for i=1,3 move a(i) down // move a1 down to a4
Also not sure why but I somehow got stuck on level 4 or 5. I probably should've read the instructions... Do you know what I did wrong?