If you need to make sure a script is run as root, add the following to the start of the script: if [[ $UID -ne 0 ]]; then echo "$0 must be run as root" exit 1 fi ...
BASH is a Unix shell and command language which can run Shell Script files. You do not need to install Ubuntu or any other Linux Distros unless your scripts need the ...
Do you know what your Proxmox server is actually running?