Is that the transactions where you send coins to an address from which everyone could spend it?
In fact, I do not create transactions with non-standard outputs on mainnet.
I've tested something on testnet a long ago.
Also how to do the above(the thing that you mentioned) with bitcoind or bitcoinqt debug window?
I do not use Bitcoin Core Client.