Looking up a table

We need help looking up a value in text file containing a parameter that must be parsed into a command line to launch an installer on a remote endpoint.
Each endpoint should be installed with a different parameter based on the hostname and the returned value of the lookup function. The table has the hostname and the parameter in a csv file but can be any format.
Command looks like
Installer.exe
Any help would be appreciated.
Thank you,
Ivan