I write some script in Visual Studio Code. After I run it and after it ends its job I have access to object generated by this script. I need access to it for further, manual, analyse.
But when I run this script from Windows Terminal with PS 7.1 or from Windows Powershell 5.1 I don’t have access to this object… it is empty.
I tried with setting scope for this object to global ($global:object_name), but this don’t help.
What should I do to have access to object generated by script, after it ends its work?