so after to run that
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
and running the script I've this issue
Set-CsPhoneNumberAssignment : Termine 'Set-CsPhoneNumberAssignment' The name is not recognized as a cmdlet,function, operable program, or script file. Check the spelling of the
name or verify that the path is included and correct, then try again.
In C:\Users\a.xxxxxx.NETCOM\Downloads\map_users.ps1:4 car:1
+ Set-CsPhoneNumberAssignment -Identity [email protected] -Enterpri ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-CsPhoneNumberAssignment:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Set-CsPhoneNumberAssignment : Termine 'Set-CsPhoneNumberAssignment' The name is not recognized as a cmdlet, function, operable program, or script file. Check the spelling of the
name or verify that the path is included and correct, then try again.
In C:\Users\a.xxxxxx.NETCOM\Downloads\map_users.ps1:5 car:1
+ Set-CsPhoneNumberAssignment -Identity [email protected] -PhoneNum ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Set-CsPhoneNumberAssignment:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
New-CsBatchPolicyAssignmentOperation : Termine 'New-CsBatchPolicyAssignmentOperation' The file name is not recognized as a cmdlet, function, operable program, or script file.
Check the spelling of the name or verify that the path is included and correct, then try again.
In C:\Users\a.xxxxxx.NETCOM\Downloads\map_users.ps1:7 car:1
+ New-CsBatchPolicyAssignmentOperation -PolicyType TenantDialPlan -Poli ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-CsBatchPolicyAssignmentOperation:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
New-CsBatchPolicyAssignmentOperation : Termine 'New-CsBatchPolicyAssignmentOperation' The file name is not recognized as a cmdlet, function, operable program, or script file.
Check the spelling of the name or verify that the path is included and correct, then try again.
In C:\Users\a.xxxxxx.NETCOM\Downloads\map_users.ps1:8 car:1
+ New-CsBatchPolicyAssignmentOperation -PolicyType OnlineVoiceRoutingPo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-CsBatchPolicyAssignmentOperation:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
New-CsBatchPolicyAssignmentOperation : Termine 'New-CsBatchPolicyAssignmentOperation' The file name is not recognized as a cmdlet, function, operable program, or script file.
Check the spelling of the name or verify that the path is included and correct, then try again.
In C:\Users\a.xxxxxx.NETCOM\Downloads\map_users.ps1:9 car:1
+ New-CsBatchPolicyAssignmentOperation -PolicyType TeamsCallingPolicy - ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-CsBatchPolicyAssignmentOperation:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException