Download circuitpython for pico board: Pico Download
Plug the Pico board into a USB port. The board will show up as a removable media device. Copy the UF2 file to the root of the media device.
The Pico board will reboot after installing the firmware image.
Download additional libraries: GitHub - adafruit/Adafruit_CircuitPython_Bundle: A bundle of useful CircuitPython libraries ready
from zip file, unpack adafruit_hid folder. copy adafruit_hid to the lib folder.
Copy duckyinpython.py to the root of the media device as code.py
$ cp duckyinpython.py //code.py
Copy your Ducky Script file as payload.dd
$ cp /path to media device>/payload.dd
Tie pin 0 (GPIO0) to pin 3 (GND) to not automatically run payloads. Easiest way to do this is to add a jumper wire between those pins.