Extracting it makes sense. PSHostUserInterface seems to be an existing interface for reading/writing. So, would you agree that it makes sense to implement the unixLikeConsole-stuff in LocalHostUserInterface (including the variable check and os detection)?
I think it would make sense to take this interface as the common way to read from/write to the console.