Samples/HelloWorld2.ps1
$ErrorActionPreference = 'stop' $var = 'ABC.2' Pipeline: HelloWorld2 { $Test = 'ONE.2' Stage: 'One.2' { Write-Output "Hello World2! (Stage One.2) from [Stage $Stagename] [$Test] [$var]" } Stage: 'Two.2' { $var = 'def.2' $test = 'TWO.2' #Invoke-Cidney HelloWorld3 # on: $env:COMPUTERNAME { Do: Something { Write-Output "Hello World2! (Stage Two.2) from [Stage $Stagename] [$Test] [$var]" #RestorePackages -Path . } # } } Stage: 'Three.2' { $test = 'THREE.2' Write-Output "Hello World2! (Stage Three.2) from [Stage $Stagename] [$Test] [$var]" } } |