When i add what LucD suggested in his last post, i get the foolowing.
New-TagAssignment : 7/21/2022 12:00:20 PM New-TagAssignment com.vmware.vapi.std.errors.unauthenticated {'messages':
[com.vmware.vapi.std.localizable_message {'id': com.vmware.vapi.endpoint.method.authentication.required,
'default_message': Authentication required., 'args': [], 'params': , 'localized':}], 'data': , 'error_type':
UNAUTHENTICATED, 'challenge': Basic realm="VAPI endpoint",SIGN
realm=6375ea75a6f71b1c60bdf03344aadb65017b2991,service="VAPI endpoint",sts="https://EXPVCENTER.quadax.net/sts/STSService/vsphere.local"} At C:\Users\adplechaty\PowerShell-Scripts\vCenter Server Deployment\7-24-2022_Deployment.ps1:325 char:13 + New-TagAssignment -Entity $vm -Tag $ChosenBackupTag + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [New-TagAssignment], CisException
+ FullyQualifiedErrorId : VMware.VimAutomation.ViCore.Impl.V1.Service.Tagging.Cis.TaggingServiceCisImpl.GetTag.Err
or,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.NewTagAssignment
New-TagAssignment : 7/21/2022 12:00:20 PM New-TagAssignment Could not find Tag with name 'DEV-4-Week-Windows'.
At C:\Users\adplechaty\PowerShell-Scripts\vCenter Server Deployment\7-24-2022_Deployment.ps1:325 char:13
+ New-TagAssignment -Entity $vm -Tag $ChosenBackupTag
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (DEV-4-Week-Windows:String) [New-TagAssignment], VimException
+ FullyQualifiedErrorId : Core_ObnSelector_SelectObjectByNameCore_ObjectNotFound,VMware.VimAutomation.ViCore.Cmdle
ts.Commands.Tagging.NewTagAssignment
New-TagAssignment : 7/21/2022 12:00:20 PM New-TagAssignment Value cannot be found for the mandatory parameter Tag
At C:\Users\adplechaty\PowerShell-Scripts\vCenter Server Deployment\7-24-2022_Deployment.ps1:325 char:13
+ New-TagAssignment -Entity $vm -Tag $ChosenBackupTag
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-TagAssignment], VimException
+ FullyQualifiedErrorId : Core_BaseCmdlet_UnknownError,VMware.VimAutomation.ViCore.Cmdlets.Commands.Tagging.NewTag