- Replaced join-string with -join to make it compatible with Powershell 2.0.