I assume its failing around here:

$lblTask.Text = "MFL"
Use L: $DriveToMap

on the use ? What happens if you comment out the line before it - the $lblTask line - does it make any difference ? If you comment-out the USE line - does the error go completely away ?