Hi,
I have a minor problem with the apps that I pin to the taskbar on Windows 10 version 1709
Taking Azure Data Studio as an example: here's what I do:
scoop install azuredatastudioNow, whenever I click on the taskbar icon, when the application starts, it creates a duplicate icon in the taskbar, as you can see below:

So, it's a bit confusing, because I'm used to looking at the taskbar icons to see if I have a window open for a certain application and click on it to switch to that window, but now, when I look at the "original" pinned one, I see that it's not running, and I click on it, and it creates a new window grouped with the "duplicate" icon in the taskbar

It's not a huge issue, but it would definitely help if the pinned icon would behave like other pinned icons
This depends on application. You just pinned shortcut to $env:SCOOP\apps\<app>\current\exe file.
But some applications cannot handle these symlinks and are just executed in $env:SCOOP\apps\<app>\<specific version>\exe instead of current alias, which result in duplicate icon (one for current, one for version specific). There is no much scoop can do about it.
Thank you @Ash258 for your answer and the clarification. So, is there a workaround or something I can do? Because I tried to directly pin the exe file in <specific version>, but that didn't work either.
You could try to pin both of them (pin from start; execute the pinned one from taskbar; pin duplicate one if occured) and see what target they point to. There should be something changed.
Because if you pin both of them you should see two shortcuts inside C:\Users\<User>\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar, and they should point to different exe file
Thank you @Ash258 for your suggestion 馃憤 ; it seems that pinning the "duplicate" one does the trick. Just one more question: is there a way in scoop to clean up the old versions? Because current points to the latest version, but the older versions are still there (e.g., in scoop/apps/azuredatastudio then .../1.4.5, .../1.5.1 etc.. Do I need to remove them manually?
scoop cleanup * for all apps or just scoop cleanup azuredatastudio see: https://github.com/lukesampson/scoop/wiki/Commands
Thank you @Ash258 for your help. I'm going to close this issue as it's resolved for me
Most helpful comment
scoop cleanup *for all apps or justscoop cleanup azuredatastudiosee: https://github.com/lukesampson/scoop/wiki/Commands