Prerequisites
Steps to reproduce
Host
Name : ConsoleHost
Version : 7.3.3
InstanceId : b895a510-c2ac-4215-92f1-de9fcfe0c309
UI : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture : ru-RU
CurrentUICulture : ru-RU
PrivateData : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled : True
IsRunspacePushed : False
Runspace : System.Management.Automation.Runspaces.LocalRunspace
"12" + "1"*((((Host).UI.RawUI.WindowSize.Width - 1) * 3) - 2) | Select-String -Pattern "2"
12111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
"12" + "1"*((((Host).UI.RawUI.WindowSize.Width - 1) * 3) - 1) | Select-String -Pattern "2"
12111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
1
Expected behavior
Actual behavior
All rows are invisible except the first, second, and last rows.
Error details
Exception :
Type : System.InvalidOperationException
Message : You must specify an object for the Get-Member cmdlet.
HResult : -2146233079
CategoryInfo : CloseError: (:) [Get-Member], InvalidOperationException
FullyQualifiedErrorId : NoObjectInGetMember,Microsoft.PowerShell.Commands.GetMemberCommand
InvocationInfo :
MyCommand : Get-Member
ScriptLineNumber : 1
OffsetInLine : 18
HistoryId : 31
Line : (Host).UI.Name | Get-Member
PositionMessage : At line:1 char:18
+ (Host).UI.Name | Get-Member
+ ~~~~~~~~~~
InvocationName : Get-Member
CommandOrigin : Internal
ScriptStackTrace : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :
Environment data
Name Value
---- -----
PSVersion 7.3.3
PSEdition Core
GitCommitId 7.3.3
OS Microsoft Windows 10.0.19045
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Visuals

Prerequisites
Steps to reproduce
Expected behavior
All rows are visible.Actual behavior
All rows are invisible except the first, second, and last rows.Error details
Environment data
Visuals