Hi,
The script should be good for all Orin series. A bit strange the error is present. As a quick solution you may try to execute $ sudo jetson_clocks and then only this part:
if [ -n "$vicctrl" ]; then
echo on > $vicctrl/power/control
echo userspace > $vicfreqctrl/governor
sleep 1
maxfreq=$(cat $vicfreqctrl/available_frequencies | rev | cut -f1 -d' ' | rev)
echo $maxfreq > $vicfreqctrl/max_freq
echo $maxfreq > $vicfreqctrl/userspace/set_freq
fi
You can run $ sudo tegrastats to confirm VIC engine is at maximum clock.