I use below batch script to copy a file from USB to Downloads of a current user. What should it be if I want to apply this in Powershell ? Please help.
The difficult part is to interpret these two %~dp0 and %userprofile% The destination profile should be current user profile not administrator profile if powershell is run in administrator.
Copy-Item -Path %~dp0Software\Browsers\ChromeStandaloneSetup64.exe" -Destination %userprofile%\downloads