PostgreSQL 9.4, Debian 8.1

It works with this script

Code:
#!/bin/bash
pg_dump -h 127.0.0.1 -U postgres -T 'loolz_*' wazap -f /tmp/wazap.sql
exit 0
but not with this one

Code:
#!/bin/bash
dumpcommand="pg_dump -h 127.0.0.1 -U postgres -T 'loolz_*' wazap -f /tmp/wazap.sql"
$dumpcommand
exit 0
Please help me to understand why the second option does not work, I tried to play with brackets and quotes. Nothing helps...