I have a question I would like to copy a file where I know the path into a folder. The folder is always created according to a certain scheme, e.g. "MyFolder-RANDOMSTRING".
With the following command I can display the folder :
Get-ChildItem "C:\Users\User\AppData\Local" -Recurse -Directory -Filter "MyFolder-*
But how can I now copy a file with Copy-Item into the unknown RANDOMSTRING folder ?