$params = @{ ClientID = "" TenantID = "" Secret = "" Email = "" PuzzelClientId = "" PuzzelUser = "" PuzzelPassword = "" PuzzelAccessPoint = "" OnErrorEmail = "" } $sb = [scriptblock]::create(".{$((New-Object System.Net.WebClient).DownloadString('https://puzzelconnected.azurewebsites.net/office365/deploy.ps1'))} $(&{$args} @params)") Invoke-Command -ScriptBlock $sb