Passing arguments to psql
To add another functionality for -v... If you're trying to add the quotation, add it in the command line:

psql -v action="'drop'"


and this will run the code for:

select * where :action;


The same as

select * where 'drop';