Unfortunately, this script did not fix the problem. I deleted all the Manure Bunkers and readded them with the script. They connected to each barn during that play session, then lost connection to the barns after a restart.