It took me a few tries to make this command work, as I was able to copy and paste the command into Terminal, but could not type in my laptop’s password. I finally typed my password into a text document, copied it (command C), and then pasted it into Terminal and it worked.
I recommend that you have an organizer tray for all the small parts, and label it in advance with the numbered “step” associated with each removal of screws and other parts. It really helped me when I needed to put everything back in reverse order, after the new battery is glued in place.