Here the command that im using to do some task there will be SomeScript that do some changes in the file and creating new file. But how I want to make the file being replace on the same directory with the original file in all subfolder?
Get-ChildItem -Filter *.png -Recurse | Invoke-SomeScript -Destination (original subfolder) -DeFine