Is your device allocated anywhere within the script?

If not, try this:

configure device type 'ZZZZ' clear;
allocate channel c1 device type 'ZZZZ' PARMS="ZZZZZ"
connect 'zzz/zzz' rate=2m;