The character $ is normally used to indicate macros, environment strings, or variables. In your case, the $ is in a string, so you have to use $$, which is :

USE \\SERVER\SHAREB$$