If you are using Remove-Item cmdlet use confirm switch like in below example
Remove-Item .\v.txt -Confirm:$false
Symptoms In some scenarios, the following validation warning appears on an updatable object: " Object is no longer supported. Enforci...