This is a trick which got famous at the PowerShell Bangalore User Group (PSBUG) session. Little trick to play a single random song provided VLC (or any other player) is set as default player for the .mp3 files: Posh (0002) > Get-ChildItem -Path 'F:\songs\movies neew' -Include *.mp3 -Recurse | Get-Random -Count 1 | Invoke-Item But this won't create a playlist for you if you simply increased the count for Get-Random..try this Posh (0003) > Get-ChildItem -Path 'F:\songs\movies neew' -Include *.mp3 -Recurse | Get-Random -Count 2 | Invoke-Item Let's try creating a playlist this time ( have to set VLC as the default player for .mp3 files , thus creating filetype associations for .mp3 files) You need get all the possible list values for mp3 extension.I read this excellent article by David Moravec at PowerShellMagazine to list all possible verb values for a particular extension....
Infra + Dev's ramblings