Do you really need to install the entire SQL Server? I think the SQL client alone is probably enough.
The GO statement is not a T-SQL statement, but a batch seperator for SSMS and SQLCMD.
It will not work outside those environments.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP