I would like to know if there is a way to return a variable value from a powershell script defined in powershell_script resource?
My powershell resource looks like following:
powershell_script "Test Script" do
code <<-EOH
Write-Host "Hello World!"
return "test"
EOH
end
I would like to use the returned value test from the script to use in other resources based on if conditions.
Thanks