The script needs to include the era (or latest) in order to be compatible with the new cardano-cli syntax.
Example
Current Syntax:
  
  
    
        
          |  | ${cardanocli} stake-address build --staking-verification-key-file "${poolName}/${ownerName}.staking.vkey" ${addrformat} > "${poolName}/${ownerName}.staking.addr" | 
    
   
 
Required Syntax:
  
  
    
        
          |  | ${cardanocli} ${cliEra} stake-address build --staking-verification-key-file "${addrName}.staking.vkey" ${addrformat} > "${addrName}.staking.addr" |