}); shellSafeWrite(this.streams.stdin, invocationCommands) .then(() => shellSafeWrite(this.streams.stdin, os.EOL)) .then(() => { this.invocationStateInfo = 'Running'; .then(() => shellSafeWrite(this.streams.stdin, `[Console]::Out.Write("${EOI}")`)) .then(() => shellSafeWrite(this.streams.stdin, os.EOL));