CmdID / PowerShell / Cmdlets / Out
Out-Host
Sends output to the command line. PowerShell reference
From the PowerShell reference
2 parameters
Alias oh
What it does
Sends output to the command line. The Out-Host cmdlet sends output to the PowerShell host for display. The host displays the output at the command line. Because Out-Host is the default, you don't have to specify it unless you want to use its parameters. Out-Host passes the output of the pipeline to the host executing the command. Out-Host ignores ANSI escape sequences. The escape sequences are handled by the host. Out-Host passes ANSI escape sequences to the host without trying to interpret or change them.
Out-Host [-Paging] [-InputObject <PSObject>] [<CommonParameters>]
Display output one page at a time
Get-Process | Out-Host -PagingIdentifyUse a variable as input
$io = Get-History
Out-Host -InputObject $ioIdentifyIts page in the reference: Out-Host.
Parameters
-InputObjectSpecifies the objects that are written to the console. Enter a variable that contains the objects, or type a command or expression that gets the objects.-PagingIndicates that Out-Host displays one page of output at a time. The page size is determined by the characteristics of the host.
After outputting the first page, the command waits for user input before the remaining pages are displayed. Press the <kbd>Spacebar</kbd> to display the next page of output or the <kbd>Enter</kbd> key to view the next line of output. Press <kbd>Q</kbd> to quit.
Using Paging is similar to using the more command.
NOTE: The Paging parameter isn't supported by the PowerShell ISE host.