This will require the umqtt.simple library on the PicoW,
You can install this with upip by running:
import upip
upip.install('umqtt.simple')
If you use a public MQTT broker such as test.mosquitto.org
you should change the prefix value in line 8 of the micropython from MYNAME
to something unique or you may recieve other peoples commands