Summary: Learn how to test a PSSession configuration file.
How do I ensure that my PSSession configuration is valid?
Use the Test-PSSessionConfigurationFile cmdlet to see if the file is valid (True) or not (False).
Test-PSSessionConfigurationFile –Path ConstrainedSession.pssc
True