cmd /c "copy C:\AzureData\CustomData.bin C:\winrm.ps1" Move the CustomData file to the working directory 12 powershell.exe -sta -ExecutionPolicy Unrestricted -file C:\winrm.ps1 Execute the WinRM enabling script 13