'$variable' The prefix '$' lets the shell interpret 'variable' as a variable.
$ echo $PATH
/home/username/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files (x86)$ MY_VAR=10; echo $MY_VAR
10- MY_VAR has value 10, and '$' must be used to print this value.
$ EXEC="./correct.out"; $EXEC
correct output- The terminal replaces the $EXEC with its value, and reads it as if it was typed by the user. Therefore, the terminal runs the executable 'correct.out'.