you can directly use awk command like this :
awk 'BEGIN{OFS=":"} {your code here}'
all codes in begin quotes runs only onetime
and the -v option is for to trans your parameter into your scripts. like:
awk '{print $pid_doc}' -v pid_doc="$Param"
and this $Param can be given from your shell script