Functions/Set-Output.ps1
function Set-Output { param( $outputData, $outputFileName ) #hooking up all available outputs if(!$outputs -or $outputs.contains("csv")){ Out-Csv -outputData $outputData -outputFileName $outputFileName } if($outputs -and $outputs.contains("excel")){ Out-Excel -outputData $outputData -outputFileName $outputFileName } } |