To be able to use the "sqlps" PowerShell Module you first need to install it from
here.
- SQLSysClrTypes.msi - CLR Types for SQL Server
- SharedManagementObjects.msi - Shared Management Objects
- PowerShellTools.msi - PowerShell Extension for SQL Server
For information on how using this cmdlets, look it up in the ISE or
here.
Using .net api