I solved this problem.
I was able to run When you have changed as under the contents of test.ps1.
echo "Conten-Type: text / html"
echo ""
echo "<html>"
echo "<head>"
echo "<title> PowerShell </ title>"
echo "</ head>"
echo "<body>"
Import-Module-Name "C: \ Program Files \ Common Files \ SMLets"
Get-SCSMClass-ComputerName <My Server Name>
echo "</ body>"
echo "</ html>"
I was able to run When you have changed as under the contents of test.ps1.
echo "Conten-Type: text / html"
echo ""
echo "<html>"
echo "<head>"
echo "<title> PowerShell </ title>"
echo "</ head>"
echo "<body>"
Import-Module-Name "C: \ Program Files \ Common Files \ SMLets"
Get-SCSMClass-ComputerName <My Server Name>
echo "</ body>"
echo "</ html>"