Hello,
We tested your script in our environment and it works perfectly.
Does the user logon name contain double quotes?
What will be displayed in the Execution Log if you add the following line in your script?
$Context.LogMessage("%userPrincipalName%", "Information")
What error is reported for the following line:
$ProfilePath = "\\fs-edu1.edu.beacon-light.org\FS-EDU1_E\TS_Profiles\%userPrincipalName%.edu.v2"
Try replacing double quotes with single quotes:
$ProfilePath = '\\fs-edu1.edu.beacon-light.org\FS-EDU1_E\TS_Profiles\%userPrincipalName%.edu.v2'