run powershell from ms sql server code example Example: mssql studio powershell SQLSERVER:\SQL\MyComputer\MyInstance\Databases\AdventureWorks2012>