I think the problem is, you open the workbook, yet you don't do anything with it and that's where the temp file comes from.
 Code:
$app = CreateObject("Excel.Application")
$wbs = $app.Workbooks
$rc = $wbs.Open("\\server\share\folder\temp.xls")
;here you start with the $app instead of the workbook.
$app.Range("d1").Entirecolumn.NumberFormat = "0.0%"
$filename = "\\server\shares\folder\$name-$key-$year-$month.xls"
$app.ActiveWorkbook.SaveAs("$filename",-4143)

I think it should be
 Code:
$app = CreateObject("Excel.Application")
$objWorkbook = $app.Workbooks.Open("\\server\share\folder\temp.xls")
$objWorkbook.Range("d1").Entirecolumn.NumberFormat = "0.0%"
$filename = "\\server\shares\folder\"+$name+"-"+$key+"-"+$year+"-"+$month+".xls"
$objWorkbook.SaveAs($filename,-4143)
$objWorkbook = ""
$app.Quit


Then again, I could be wrong.