Cannot overwrite variable {0} because the variable has been optimized. Try using the New-Variable or Set-Variable cmdlet ...