Cant read powershell output to variable

Since you are in instance of a Chef::Recipe and the include is not part of the DSL you have to use

::Chef::Recipe.send(:include, Chef::Mixin::PowershellOut)

instead of

include Chef::Mixin::PowershellOut

further information: