The highlighted line in the code contains a unicode quote. It is recommended to delete and retype it if a quote was intended.
echo ‘hello world’
echo 'hello world'
If you want to use typographic single quotes, you can put them in double quotes (or typographic double quotes in single quotes) to ignore these issues. Example:
printf "Warning: ‘wakeonlan’ is not installed.\n"