WFA can sure import anything from a file, but that will be treated as Data instead of credentials. In the sense that Credentials when saved in WFA DB will have encrypted passwords and only accessible to WFA apis. But when imported from a file, they all will be treated as a regular data with username/password combination available to be seen by any DB user.
If you are okay with this, as this is your decision, then just decide what file type you need to keep your credentials into. I would suggest have them in .json or .xml, they can very easily be handled by Powershell. I'll give you a DataSourceType script to do this. Then you need to modify your commands to take credentials from Data tables instead WFA credential tables. Its easy.
@Your suggested method is really good , Will it work from character say ABC* ( ABCA to ABCZ )
--------
Yeah, it would.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.