In SharePoint 2010 you have two command shell tools: STSADM and PowerShell.
The former has been around since the first release of SharePoint in 2001, and PowerShell is new for SharePoint
The advantages of command shell tools follow:
1. With just one line of text you can accomplish both simple and advanced backup and restore procedures.
2.You can save the backup or restore procedure, which makes redoing it when needed easy.
3.You can schedule backup and restore procedures by activating them with the Windows Scheduler tool.
4.Save the procedure as a file and you will have documentation of how these procedures are managed.
PowerShell is the new kid on the block
. STSADM will most likely go away in the near future, so make sure to focus on PowerShell; it contains about three times more SharePoint operations (known as cmdlets in PowerShell) than STSADM, aside from the fact that PowerShell is a great scripting
language. Besides, all you learn about PowerShell can also be used on other Microsoft server applications, such as Microsoft Exchange and Microsoft SQL Server.