get-process Process environment-variables
Source
$proc_id = (Get-Process -Name "<NAME>").Id; python -c "import psutil; print(psutil.Process(pid=$proc_id).environ()['PATH'])"
replace <NAME>
with the process name and optionally PATH
with another environment variable name