How to pass parameter to pipe command row-wise?

Hi,

I have a list of parameter in a file. I want to pass them one by one to piped command and syntax is like

<command> <parameter> <command continues>

How to achieve that ?

Thanks

Something like this?

while read parameter
do
  <command> "$parameter" <command continues>
done < file