You can use backslash(\) or double quotes(") to escape single quotes in bash shell script.
Backslash escapes the character that immediately follows it.
echo \'I am a Google Cloud Associate Engineer\'
Output
'I am a Google Cloud Associate Engineer'
By using single quotes inside double quotes, you can escape it.
str="'I am a Data Scientist'" echo $str
Output
'I am a Data Scientist'