My bash

Hi,
I’m trying to set my first script to overclock my GeForce 1070. I write this but i’m not tottally sure if Im doing this well.

#!/bin/bash
[ “$UID” -eq 0 ] || exec sudo bash “$0” “$@”

nvidia-smi -pm 1
nvidia-smi -i 0 -pl 151

memoryOffset=“450”
graphicsClockOffset=“139”

I understand that [3] is is a reference to the max Performance Level but I’m not sure

nvidia-settings -a [gpu:0]/GpuPowerMizerMode=1
nvidia-settings -a [gpu:0]/GPUMemoryTransferRateOffset[3]=$memoryOffset
nvidia-settings -a [gpu:0]/GPUGraphicsClockOffset[3]=$graphicsClockOffset