If you are using Remove-Item cmdlet use confirm switch like in below example
Remove-Item .\v.txt -Confirm:$false
Cause The conflict resolution mechanism in Windows 11 24H2 is different than in earlier versions of Windows. Solution On the Windows endpo...