Writing a script in an ASCII file

I was wondering if you can write a bash script in an KDE ASCII file? There is a file: plasma-org.kde.plasma.desktop-appletsrc that is an ASCII file. What I want to do is write a small script that changes an icon depending on which version of linux I am in.

I have 4 different linux distros that all share the same /home. When I log into Manjaro, I’d like to see the manjaro icon on the ‘Application Launcher’ and if I logged into Fedora, I’d like to see the fedora icon.

I am just not sure if I put #!/bin/bash in that type of file if it will a). Run b). Screw up KDE.