I managed to finish it in 7 commands, but that last turn is wonky as hell so don't be surprised if it doesn't work out the first time.
Very nice! It sucks that the physics isn't deterministic, so doesn't work out every time, but not sure what I can do about that... Anyway, I got to see it working on the third attempt, and that was cool. 7 must surely be the minimum possible :)