According to Microsoft the correct way to restart II7 7 is as below.
net stop WAS
net start W3SVC
https://technet.microsoft.com/en-us/library/cc732317%28v=ws.10%29.aspx
However in my experience I have also used
IISReset /stop
IISReset /start
IISReset /restart