function Write-ArrayToOutput { <# .SYNOPSIS Iterates an array of items and writes them out. #> [CmdletBinding()] Param( [Parameter(Mandatory=$true)] [object]$items ) $items | ForEach-Object { Write-Output $_ } }