Let's see short PS-snippets:
Write-Output @(1,2,3)
Write-Output @(1,2,3).Count
Get-Process|Write-Output
Write-Output (Get-Process)
$p=7890;Write-Output "Var. is $p"
Write-Output "ABCD78".Length
Function Get-StoppedService {
Param([string]$Computername = $env:computername)
$s = Get-Service -ComputerName $Computername
$stopped = $s | where {$_.Status -eq 'Stopped'}
Write-Output $Stopped
}
Get-StoppedService
In all snippets above I can just wipe out string Write-Output (with trailing space, if any) and will have exactly the same functionality. The question is: do you know example where we CAN'T throw off Write-Output? Of course, if you interesting in Write-Output's parameter -NoEnumerate you can't eliminate cmdlet itself, so let's suppose we don't want/need -NoEnumerate. In this case - do you have example?