Could someone please tell me what happens differently with these two ways of mapping drives?

$Drive = "P:" $Path = "\\$Server\Projects" GOSUB "MapDrive"


use P: "\\Server\Projects"


Thanks,
Pete