Having Trouble translating Winbugs code

You can do that, or you can use .dist and wrap the scan in pm.CustomDist. See here.