Yeah, this ^
Use Pokegen to obtain a valid TID and IVs,
then do what is needed.
I created this a long, long time ago.
While we don't have Pokecheck any more, and it might not be completely accurate,
I would imagine the other steps are valid.
Note, certain inaccuracies with the images/changes:
If Gen 3 Pokemon, RS TID/SID is tied (obtained from method 1 generation in the same frame),
while FRLG E has some randomness to it (TID is generated, then SID, at different frames).
Reading https://www.reddit.com/r/pokemonrng/wiki/links for RNG abuse information, will shed light on what values are tied and aren't.