Turns out I was overthinking this. I've been mapping the file share after a reboot when what I should have been doing is copying the files to the VM and running them from there. Only one mapping is required at the start of the build block.
build