Run Powershell command from cmd prompt


To run a powershell command from cmd prompt just add the below. This is useful when using execute commands within chef as well.

@powershell Get-Help
execute 'powershell help' do
command '@powershell Get-Help'
action :run
end

 

Advertisements