It would appear that this is the only statement that could generate that error.
Percent_Free = ([int]($.Freespace*100/$_.Capacity))
So you have some volume where $_.Capacity is zero.
Add some debugging statements to your script to determine which volume is causing the problem. Maybe start by just looking at the raw freespace and capacity numbers
Add an if statement to test for zero and don't do the division if it is.