George, thatnks for your input. I'm looking for something that will let me
see the final state of things after a scruipt runs. To scope everything as
Global for debugging and then having to remove it all when all is working
just doesn't seem like the right way to do things.
"George Davis" <GeorgeDavis@xxxxxx> wrote in message
> You can make variables global in scope during script execution. So if you
> have the following line in your script:
> $GLOBAL:someVar = "Hello"
> Even if that variable doesn't exist before you run the script, it will
> "Tim Munro" wrote:
>> Hi all,
>> While sitting at a powershell command prompt, is there a way to
>> execute a script and retain all the variables the script used after
>> execution is complete?