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
A simple cd 'directory of your choice' will put you back to the previous directory you were in.
PS SQLSERVER:\> cd D:
Result:
PS D:\>