Skip to content

Add support for "write-host" #7

Description

@mikeclayton

Using write-host inside a script results in an exception as follows:

System.Management.Automation.Host.HostException: Cannot invoke this function because the current host does not implement it.
at System.Management.Automation.Internal.Host.InternalHostRawUserInterface.ThrowNotInteractive()
at System.Management.Automation.Internal.Host.InternalHostRawUserInterface.get_ForegroundColor()
at Microsoft.PowerShell.Commands.ConsoleColorCmdlet.get_ForegroundColor()
at Microsoft.PowerShell.Commands.WriteHostCommand.PrintObject(Object o)
at Microsoft.PowerShell.Commands.WriteHostCommand.PrintObject(Object o)
at Microsoft.PowerShell.Commands.WriteHostCommand.ProcessRecord()
at System.Management.Automation.Cmdlet.DoProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()

Can autobot implement write-host so that it either just swallows the value, or maybe sends it to the autobot console for debugging?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions