IS it possible to create a variable in powershell that is static.
Even when you close powershell?
You could use environment variables or you could add it to your all users psprofile.
@ Olaf soyk
Could you explain?
How to create and modify environment variables is explained here: Creating and Modifying Environment Variables.
And how to modify your Powershell profile or the systems Powershell profile you can find like this: Get-Help about_profiles