Powershell error with multiline command call - Missing expression after unary operator '-'
This turned out to be caused by a space being present after the backtick (`) character.
So,
Create-WebSite -Name $targetWebSite ` <- SPACE HERE
-Location $targetWebSiteDir
became
Create-WebSite -Name $targetWebSite `<- NO SPACE
-Location $targetWebSiteDir
Once I removed the space everything ran correctly.