Powershell_exec result to variable/attirbute

Thanks for the reply craigontour. If I use powershell_out() as you have suggested with .stdout.to_i it does log "0" to the console but I'm hoping for a string response with a path. I've tried to do the same thing with stdout.to_json and stdout.to_str but those both output nothing to the console. Not sure if it's null or an empty string but I'm still in the same position.

As I said before I know the command in "code" does what I expect on the powershell command line, but I'm not sure how to test that it's even doing the same thing from within the recipe.