Staying with the test-connection function I thought I’d show how to turn the function and format file into a module. This includes how to load the format file in a module.
Create a folder TestConnection
Copy the format file and the script file… Read the full text.