Use Nexss Programmer to run programs platform dependent.
create few programs in any language. and use --nxsPlatform to tell which platform to use.
# this program will be run only on windows and freebsd. nexss myprogram.ps1 --nxsPlatform="win32,freebsd"
nexss -env # see the distro tags aswell as more information about version of the system.
In the nxsPlatform you can use also distro tag. Use nexss -env to see the platforms tags. You can use even with version. So for example Windows have 2 tags: Windows and Windows10. If you will use Windows10 will run only on Windows10, if you use Windows it will run on all Windowses. You can use also Distro Linux tag. If you use Fedora,Ubuntu18 it will run only on Fedora and Ubuntu version 18. etc etc.