line 1: syntax error near unexpected token `newline' with HTML + shell script
HTML is not a script, it's a markup language. You need a browser to render HTML. To view it, you probably want

open sysinfo_page.html