Note: by saying *pid of file "File_name"* i guess that you mean *the pid of process having "File_name" in it's argument list*
First, you should remove the bogus "/directory>" prefix of the last line of script (what did you intend to do with this ?)
And the 1st line should better be written:
if you do'nt have "pkill" command:
ps -aef | awk '/File_name/ && ! /awk/ {system("kill -9 " $2)}'
if you have it:
pkill -9 -f "File_name"