I\'m using PowerShell scripts for some UI automation of a WPF application. Normally, the scripts are run as a group, based on the value of a global variable. It\'s a littl
$myvar = if ($env:variable) { $env:variable } else { "default_value" }