We are using this script embedded into our own script for deployments, and so far it works, when we run it in user context.
However, so far, we are unable to change the File Associations systemwide for all users.
Is there a way to achieve this or is this script "just not made" for this type of usage?