I want to run this command in Terminal via AppleScript but Script Editor doesn't like the dollar sign. It says: Syntax Error: Expected end of line but found unknown token. How can I enter this command into Terminal without Script Editor complaining? I'm totally new to this and this command is not mine, I don't really want to change it.
tell application "Terminal"
do script "exec ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)""
end tell
do script "exec ruby -e '....
(Use a single quote to encapsulate everything starting with the $)