I want to run windows_path resource with until able to find that string?

windows_path ‘name’ do
path String
action Symbol
end
can any one help with this?