Rewrote installer to be cleaner

Fixed issue ID #1, error in running invoke-sqlcmd