Categories
October Surprise 2016

Reloading a Powershell window so that modules installed (SQLPS … – Reddit

Is there a way to reload/refresh an existing powershell window so that it can then import a newly install module? I did try a cheeky: Invoke-Command -ComputerName localhost -ScriptBlock {Invoke-SqlCmd -inputscript “\UNCpathtoscript.sql”}