the powershell command Remove-Item has an exclude parameter. Would it be possible to add it to the hashtable in a future release?
right now I have to use:
Get-ChildItem -Path “$UserProfilePath\appdata\local\xxx” -Exclude ‘specificfilename.*’ | ForEach-Object {Remove-Item $PSItem -Recurse }