Is there any terminal command which allows the user to input the name of the application along with the command, executing which shows you all the hidden files and folders the app has created or installed on your mac
Files created by apps are usually in
/Library and subfolders likes
The files are not created by a specific user "AppName" but with your user account rights (or root one for some of them). So there is no way to locate App created files, unless if the app correctly named them.
So you can use the find command like that:
$ find /Libray -name "*AppName*"
Grep command can work too:
$ ls -la /Library | grep "AppName"