Bash script: Code To Attach USB by ID to VM in Qubes 4.0

I need a script solution that will consistently attach a USB to a qube & mount it.

@ jevank gave a solution that uses product ID, here: How To Attach A USB To VM Via the USB Name? - #3 by Emily

The solution works in 4.1.

Well several days trying everything, I just can’t get a solution to work in 4.0.

Do you have some working code for this?