1
0

Auto-commit: 2025-10-31 08:58:35

This commit is contained in:
David Wuibaille
2025-10-31 08:58:36 +01:00
parent 7d94414992
commit 7cc3011354
1088 changed files with 193455 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# Example script to process pipeline
# Type of pipeline object gets lost for compiled scripts, pipeline objects are always strings
[CmdletBinding()]
Param(
[parameter(Mandatory=$FALSE, ValueFromPipeline=$TRUE)] [AllowEmptyString()]$Pipeline
)
BEGIN
{
"Reading pipeline as array of strings"
$COUNTER = 0
}
PROCESS
{
if ($Pipeline -eq $NULL)
{ Write-Output "No element found in the pipeline" }
else
{
$COUNTER++
Write-Output "$COUNTER`: $Pipeline"
}
}