class RuboCop::Cop::Chef::Modernize::ExecuteScExe

Chef Infra Client 14.0 and later includes :create, :delete, and :configure actions with the full idempotency of the windows_service resource. See the windows_service documentation at docs.chef.io/resources/windows_service for additional details on creating services with the windows_service resource.

@example

### incorrect
execute "Delete chef-client service" do
  command "sc.exe delete chef-client"
  action :run
end

### correct
windows_service 'chef-client' do
  action :delete
end