sql server management studio powershell module code example
Example: mssql studio powershell
SQLSERVER:\SQL\MyComputer\MyInstance\Databases\AdventureWorks2012>
SQLSERVER:\SQL\MyComputer\MyInstance\Databases\AdventureWorks2012>