You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing a script to Invoke-ShouldProcess if you assign a variable defined in the caller, will the variable get modified by the callee in the caller scope?
e.g.:
$output = $null
Invoke-ShouldProcess 'assign $output' {
$output = "This is a test"
}
$output | Should Be 'This is a test'
The text was updated successfully, but these errors were encountered:
When passing a script to
Invoke-ShouldProcess
if you assign a variable defined in the caller, will the variable get modified by the callee in the caller scope?e.g.:
The text was updated successfully, but these errors were encountered: