PowerShell script not accepting $ (dollar) sign PowerShell script not accepting $ (dollar) sign powershell powershell

PowerShell script not accepting $ (dollar) sign


Escape it by using backtick (`) as an escape character for the dollar sign ($).

Also, try to enclose the statement in single-quotes instead of the double-quotes you are using now.