Arduino Pro-Micro Rubber-Ducky
ruby pro-micro-ducky.rb
Then you need to enter all the details asked.
Just copy the powershell_reverse_ducky.txt to your Arduino IDE.
In the 'Tools' menu go to boards and change it to arduino leonardo.
Change the port given (usually COM1)
Then click upload