Whether you are actually "import" it into a "software" or enter it into a script doesn't really make a difference.
Difference is in approach. It’s one thing to import a key into software that resides on computer designated for routine day-to-day work and quite another matter to do it with the script (btw, which is easy to check) living on air-gapped device. I think you can understand which one of two is the safest way.
You need to keep the context in mind.
We were never speaking about air-gapped vs online.
HusnaQA simply said:
Paper Wallet is only a printout that contains a Bitcoin address or public key that allows transferring coins to the wallet, and a private key that gives access to send funds. This Private Key is imported into other software for sending funds.
That statement itself is true.
Whether you import it into a "software" or use a "script", doesn't matter at all.
What matter is whether you are entering your private key into an online device or an air-gapped one. But that was never a point from HusnaQA.
If we compare air-gapped devices, it doesn't matter whether you use a "software" or a "script". Same for online devices.
Offline is better than online. But "software" vs "script" doesn't matter at all.