I am writing a script in PowerShell ISE and I am using Invoke-Sqlcmd. After the command is executed the Powershell session switches into sqlps session (PS SQLSERVER:>) and I can
There was a similar question over at SuperUser today: https://superuser.com/questions/767427/stuck-in-powershell-sqlserver
You should be able to just go back to C: