Testing custom os_env values with inspec


I am trying to take advantage of the os_env resource, but my issue is the environment variables I am trying to test are set with a PowerShell script. I was wondering if its possible to run the script from within the inspec test and set the custom environment variables then test them. As of right now, I am only able to test the default environment variables. The machine I am testing is being connect to with a remote connection using --host which is making things tricky.