I have a folder with 1000 .bin files in. I would like help with finding a PowerShell command to create set of shortcuts to these files with a static set of command line parameters in the shortcut's 'Target', namely a program (C:\prog.exe), an argument (-X), a file (dll.dll) and finally the filename (randomly_named_file.bin)
A shortcut with target arguments
"C:\prog.exe" -X "C:\dll.dll" "C:\folder\file_0001.bin"
If I highlight all the .bin files in the folder and right-click-drag to the target folder and select 'create shortcut here', I get 1000+ shortcuts where in 'Target' it just has the filename. I need to create 1000+ shortcuts all with the same target arguments.