$ bitcoin-tx -testnet -create nversion=1 in=0000000000000000000000000000000000000000000000000000000000000100:0:4294967295 outscript=21000000:1
010000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff010040075af0750700015100000000
$ bitcoin-cli -testnet signrawtransaction 010000000100010000000000000000000000000000000000000000000000000000000000000000000000ffffffff010040075af0750700015100000000 '[{"txid":"0000000000000000000000000000000000000000000000000000000000000100","vout":0,"scriptPubKey":"A9148F121357DC6D9130F3A19B3EDD965998B6B23E5687","redeemScript":"21036622CF5134172EE134EA77A181AAD2D544D3E084AF105423779C94545F96508EAC","amount":21000000}]' '["cTtH93A1spUmeMV2QdPXtET8KT2w98YxDjkQJNbZbYBgKAxsTbsr"]'
{
"hex": "01000000010001000000000000000000000000000000000000000000000000000000000000000000006c47304402200f52ed89db0f0909b2b5db21eff27c7fc446a138d373de42e7467065e65893ab022036bd523c296eb40d6e26165969ad3553c1620c141e95df75b8c372c860f92d2b012321036622cf5134172ee134ea77a181aad2d544d3e084af105423779c94545f96508eacffffffff010040075af0750700015100000000",
"complete": true
}
I used a different private\public key pair because I don't know what's the private key that was used in the tests, but the scripts should be the same.
You can't use
createrawtransaction because the output's script is
51, and seems like createrawtransaction accepts only addresses for outputs.