Hello, I had problem with script because it did not handle folder names with spaces.
To fix folder names with spaces like this
/Users/user/My Drive/folder/certified-kubernetes-administrator-course/kubeadm-clusters/apple-silicon/scripts/01-setup-hosts.sh'
this line
multipass transfer $SCRIPT_DIR/01-setup-hosts.sh $node:/tmp/
should change to
multipass transfer "$SCRIPT_DIR/01-setup-hosts.sh" $node:/tmp/