pam workaound script