Out-gridView is not implemented in PowerShell Core 6, so if you omit it from the command, it can be displayed in the terminal.
# long commands
get-childItem env: | out-GridView
# Short Commands
gci env: | ogv
# long commands
$env: PATH -split ';' | out-gridView
# Short Commands
$env: PATH -split ';' | ogv
# long commands
$env: PATH -split ';' | Group-Object | Select-Object Name, Count | out-GridView
# Short Commands
$env: PATH -split ';' | group | select Name, Count | ogv
# long commands
$env: PATH -split ';' | Where-Object {-Not (Test-Path -pathType Container $_)} | out-GridView
# Short Commands
$env: PATH -split ';' |? {! (Test-Path -pathType Container $_)} | ogv