Fix: Visual Studio 2013 / 2014–SQL Server 2014 – The term ‘Invoke-Sqlcmd’ is not recognized as the name of a cmdlet

  Note When you want to run / edit / debug PowerShell scripts inside Visual Studio 2013 / 2015 you will have to install the “PowerShell Tools for Visual Studio” Visual Studio extension found at: https://visualstudiogallery.msdn.microsoft.com/c9eb3ba8-0c59-4944-9a62-6eee37294597   I wanted to run and debug a PowerShell script inside Visual Studio 2013 …

Use formatting–f, when writing to the output console with PowerShell

If you want to format a string when echoing to the screen, use parentheses. Echo("This is {0} " -f "a test.")   Will output: This is a test.   Note http://stackoverflow.com/questions/17623644/what-is-the-difference-between-echo-and-write-host-in-powershell echo is an alias for Write-Output, which writes to the Success output stream. This allows output to be processed …