Is there any function to use instead of using this command in powershell script?
choco search --local-only $package.name
The function needs to return a list/array of objects with name and version if they exist, I want to use that in a powershell script.
Executing this command only returns an array of strings which is not clean to use
choco search --local-only $package.name
Thank you for any help.