System Variables on Remote Machine
To get the $env:PATH system variable value on a remote machine.
$path = Get-WmiObject -computerName $myComputer -query "select * from Win32_environment where username='<system>' and name='path'";
To update it
setx.exe -s $myComputer -m PATH $path