When I need to run sql scripts containing GO statements I usually read the entire file into a string and split it into a string array using GO as the delimiter.
I then connect to the database and run each statement in order.
It's quite easy and works well. Just make sure to keep your database connection open while running all statements. Also you may consider running them all in a transaction.