Test-Command checks commands for consistency.
Test-Command run a series of static analysis rules on your script, and helps you see if there's anything to improve.
It will not run any script, just look at the information about the script, like it's help, command metadata, or the script content itself.