how to Copy-files-specific-extension

Example

Copy all files of a specific file extension to the desktop from given directory
Copy-Item $home\*.ps1 ([Environment]::GetFolderPath("Desktop"))
 

Copy and Try it