Window sizing seems to work ok under base PowerShell or under VS Code (highly recommended) environments. When running under PowerShell ISA I get this output:
PS C:\Users\labadmin\BigIpReport> .\Bigipreport.ps1 .\slb-bbz.xml
Successfully loaded the config file
2018-04-11 12:13:17 Configuring the console window
The property 'height' cannot be found on this object. Verify that the property
exists and can be set.
At C:\Users\labadmin\BigIpReport\Bigipreport.ps1:401 char:1
+ $PSWindowSize.height = 50
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
The property 'width' cannot be found on this object. Verify that the property
exists and can be set.
At C:\Users\labadmin\BigIpReport\Bigipreport.ps1:402 char:23
+ ... ize.width = $PSWindowSize.width = [math]::floor([decimal]$PSWindow.Ma ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : PropertyNotFound
Exception setting "windowsize": "Cannot convert null to type
"System.Management.Automation.Host.Size"."
At C:\Users\labadmin\BigIpReport\Bigipreport.ps1:403 char:1
+ $PSWindow.windowsize = $PSWindowSize
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], SetValueInvocationExceptio
n
+ FullyQualifiedErrorId : ExceptionWhenSetting
2018-04-11 12:13:18 Pre-execution checks
Window sizing seems to work ok under base PowerShell or under VS Code (highly recommended) environments. When running under PowerShell ISA I get this output: