The Azure Cmdlet for adding a Custom Script Extension to a VM named Set-AzureRmVMCustomScriptExtension has an -Argument
switch, which states that it accepts a strin
There is an example of multiple arguments in use from this blog:
Set-AzureVMCustomScriptExtension -VM $x -ContainerName 'test' -FileName 'script1.ps1','script2.ps1','script3.ps1' -Run 'script1.ps1' -Argument 'arg1 arg2' | Update-AzureVM
If this code snipett actually works then it means you need to pass a space delimited string for your arguments. Just make sure you keep your double quotes so the variables expand properly.