Serious · Logic
Impact
Copying the printed `tar` command can overwrite files in the existing folder and leave the new folder unused.
Recommended action
Store the chosen folder in a PowerShell variable and use it for both extraction and the replacement source.