I often find that if you pre-assemble the path using variables this should allow the use of $ for a hidden share as shown in the example:

use x: "$ServerName\$ShareName$"