Output Cmdlets

The default output for cmdlets is Out-Default which redirects to Out-Host

# View the Processes in GUI
# Process Selected from GUI passed to next step in Pipeline
# The next step terminates the process
Get-Process | Out-GridView -PassThru | Stop-Process

The Out-Null can be used to suppress the output

The cmdlets Export-Csv and Export-Clixml can be used to save results as CSV and XML files respectively.

Input Cmdlets

The cmdlet Get-Content allows to read data from file

The cmdlets Import-Csv and Import-Clixml can be used to read in CSV and XML files.

The content that was written to files using the Export-* cmdlets can be read into PS as objects. These imported objects are not the same as the original objects.