Initially this did not work for me, but then I went into diskpart and discovered that the "MY DISK LABEL" string is truncated in diskpart to 11 characters. once I manually truncated the string everything worked well. for convenience this script should automatically do this if the user enters a longer string.