SQL Server 2012 implements a small number of PowerShell cmdlets for the Database Engine. These cmdlets are available within the SQL Server PowerShell console or if the snap-in is loaded manually, which is not covered in any detail here:
Invoke-PolicyEvaluation—A cmdlet that evaluates a SQL Server Policy-Based Management policy (or policies) against a target server.
Invoke-SqlCmd—A cmdlet that runs any regular T-SQL command and any languages and commands supported by the
sqlcmd utility, which may be more familiar to most users.