In previous versions of SharePoint, many administrative tasks were completed through the command-line tool, stsadm. This tool was not only used by administrators, it was used by developers who needed to add, deploy, upgrade, or delete solutions in the environment.
However, stsadmn has been replaced in SharePoint Foundation by PowerShell as the preferred command-line tool. stsadm has not totally been removed; it remains as a part of SharePoint to support compatibility with previous versions of SharePoint. Several stsadm commands have been added, and some have been removed. Even though stsadm still exists, it is recommended that any command-line operations be handled with PowerShell.