, Mixlib, powershell script. :
result = Mixlibrary::Core::Shell.windows_script_out(:powershell, mycode)
exit_status = result.exitstatus
@carpNick open-source , .... powershell, (bash, win modules ...) - .
, . , - , . , , .
... @carpnick | https://github.com/carpnick