Question: the term 'connect-pnponline' is not recognized as the name?
Answer: The full error comes as: Connect-PnPOnline : The term 'Connect-PnPOnline' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.