title: Add user to server role in SQL Server
body: <p>I am trying to add a user to a SQL Server role using PowerShell.</p>
  
  <p>I have a script which reads the server, user and role information and puts it in a text file. I am able to connect to the server and check for the user availability in that server, however I am not able to add the server role to the user. Please assist with the correct script to add the role. My script is long and not able to put it here. Is there a way I can attach it as a text file?</p>