for the first command it shows a message of invalid path, whereas for the second one: regenerated a private key for one of the already imported address but not the required one (the address that stored my bitcoin in time of the chain splits). Would you please elaborate more on "change address" ??
Change addresses are addressed where "change" goes.
By example:
If all your wallet has seen is one initial transaction of say 1
BTC going in.
You then want to make a 0.5
BTC transaction, in a lot of wallets, there's a second layer of addresses that then get sent a 0.5
BTC change from that transaction. As the 1
BTC input has two 0.5
BTC outputs.
Does the script give you only one private key each time or multiple ones? How many are reproduced?