Before you run Power Shell Script, we can use Basic Format or you can use Notepad and save it as .ps1 .
1. Open a Notepad and Type
$s= "Welcome to Power-shell Script!"
write-host $s
2. Save File as c:\welcome.ps1
3. Open power Shell - enter, power shell c:\welcome.ps1
you will see "welcome to Power shell"
1. Open a Notepad and Type
$s= "Welcome to Power-shell Script!"
write-host $s
2. Save File as c:\welcome.ps1
3. Open power Shell - enter, power shell c:\welcome.ps1
you will see "welcome to Power shell"