I do not know anything about AppleScript.  I need some help creating a script and then attaching it to an icon so I can run it from the Dock.  My terminal is ZSH:

    #!/bin/bash
    
    IF=en0
    export PATH=”$PATH:/sbin:/usr/bin”
    
    mac=`ifconfig $IF | grep ether | awk ‘{print $2}’`
    echo “$IF mac before change=$mac”
    randmac=`openssl rand -hex 6 | sed ‘s/\(..\)/\1:/g; s/.$//’`
    sudo ifconfig $IF ether $randmac
    mac=`ifconfig $IF | grep ether | awk ‘{print $2}’`
    echo “$IF mac after change=$mac”