It is quite easy. Make sure you have SQL Server installed on your computer. The following reference shows you how you may start Power Shell from your SQL Server Management Studio(SSMS). Also make sure you are able to connect to your server.
After this preparation review the following for a step by step procedure:
http://hodentekmsss.blogspot.com/2014/04/starting-power-shell-from-sql-server.html
Thanks
After this preparation review the following for a step by step procedure:
http://hodentekmsss.blogspot.com/2014/04/starting-power-shell-from-sql-server.html
Thanks