Actually, sorry to be the grammar police, but in this case he would have said "¡Hazlo!". "Hágalo" is the formal phrase, and since he's Anakin's superior, older than him, and wants Anakin to see him as a close friend, he would for sure use the informal term.