How do I write an inline multiline powershell script in an Azure Pipelines PowerShell task? : <p>The yaml schema for a <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/utility/powershell?view=azure-devops" rel="noreferrer">Powershell task</a> allows you to select targetType: 'inline' and  define a script in the script: input.</p>

<p>But what is the correct format for writing a script with more than one line?</p>

<p>The docs don't specify how, and using a pipe on line one (like is specified for the Command Line task) does not work.</p>
