Handle ps1 prompt state from %runsql