This script can be used to rename the Startup Volume based off of the macOS version it has installed.
This script will find the boot volume using the bless command and then get the current volume name for the boot volume using the diskutil command. It will then find the short version of macOS the computer has installed. The reason for this script is so that the startup volume names are uniformed based off of the macOS version they have installed. The variable "newName" is then assigned a string based off of the macOS version installed. This variable is then compaired to the current volume name. If the names do not match, it will automatically rename the startup volume to the correct name.