Cygwin's Find command can sometimes cause this script to fail to detect an elevated session if it occurs in the path before the Windows version. To solve, I've made the path explicit.
all of the "shares" were promoted to root level shares.