|A simple get-help output|
PowerShell is a .Net based command line tool designed for automation.
It is recommended to script repetitive task in PowerShell (.ps1 files) as they can save you a lot of time if otherwise you perform the tasks manually.
A lot of common tasks templates are offered by Microsoft Technet Script center, as you can see in this link:
Technet Powershell Repository for SQL Server