For SSAS 2005 and SSAS2008 you can use for example ascmd (Available on CodePlex)
or using PowerShell and the Invoke-ASCmd cmdlet. Botch can execute XMLA Script.
You can use the Deployement wizard to create the deployment script and deploy it later using one of the methods above.