Hi,
I've installed current release (4.4.50) chefDK and trying to experiment with powershell_exec in chef-shell:
chef (15.4.45)> recipe_mode
chef:recipe (15.4.45)> powershell_exec('write-host "stuff"')
Traceback (most recent call last):
8: from (irb#1):1
7: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.4.45-universal-mingw32/lib/chef/mixin/powershell_exec.rb:101:in `powershell_exec'
6: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.4.45-universal-mingw32/lib/chef/mixin/powershell_exec.rb:101:in `new'
5: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.4.45-universal-mingw32/lib/chef/powershell.rb:39:in `initialize'
4: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/chef-15.4.45-universal-mingw32/lib/chef/powershell.rb:51:in `exec'
3: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/ffi-1.11.1-x64-mingw32/lib/ffi/library.rb:99:in `ffi_lib'
2: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/ffi-1.11.1-x64-mingw32/lib/ffi/library.rb:99:in `map'
1: from C:/opscode/chefdk/embedded/lib/ruby/gems/2.6.0/gems/ffi-1.11.1-x64-mingw32/lib/ffi/library.rb:145:in `block in ffi_lib'
)oadError (Could not open library 'Chef.PowerShell.Wrapper.dll': The specified module could not be found.
What am I missing?