I have a PowerShell script that runs XMLA script against SSAS instance. Source of my script is: https://jorgecandeias.github.io/2013/12/24/how-to-execute-xmla-against-ssas-i