To convert this PowerShell script into an executable (.exe) file, you can still use PS2EXE as described before:
-
Install PS2EXE (if you haven't already):
Install-Module -Name ps2exe
-
Convert the script to an executable:
Invoke-ps2exe .\ping_websites.ps1 .\ping_websites.exe