let's say that I have a text file that defines some variables something like this
file : .env
USER=user
DB_NAME=userDB
DB_HOST=localhost
DB_PORT=5432
and I want PowerShell to read the text file and export it to current session so when I have a program that run from the session same and reads the variable from env it will recognize the variable above, how do i do that in PowerShell ?