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