Packer issue with local env variables in powershell

we encounter an issue, with local windows env variables which will not be passed to an powershellscript we are running during deployment. Someone els e is facing same issue?