Oracle catcon.pl program is used to run a SQL scripts or SQL statements in all PDBS .
$ORACLE_HOME/perl/bin/perl $ORACLE_HOME/rdbms/admin/catcon.pl -u SYS/****AhAhpassword-changed*** -d /export/home/oracle/scripts -l /export/home/oracle/scripts/logs -b give-write_ps give-write_ps.sql
-u username/password
-d directory for the script to run on all PDBS
-l location of logs
-b basename of log files