Skip to content

Instantly share code, notes, and snippets.

@kilasuit
Last active May 12, 2021 04:18
Show Gist options
  • Save kilasuit/ddcec2bc8ed995e57f7700e638cde3dd to your computer and use it in GitHub Desktop.
Save kilasuit/ddcec2bc8ed995e57f7700e638cde3dd to your computer and use it in GitHub Desktop.
$data = .\Script1.ps1
.\Script2.ps1 -data $data
Do-something
$output = @{ Name = 'Dave'
Task = 'Drive'
Result = 'Crashes'
}
$output
param(
[parameter]
[hashtable]
$data
)
$data.Result = 'Parks'
$data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment