Incorporate catchpoint auth script in webpagetest

Hi Team,

I have my web app running the required authentication with username and password then redirect to my test page.
I have my catchpoint script below working fine for this and I would like to incorporate same in webpagetest script.

Please suggest.

// Step - 1

// Test login Page

open(“https://test.com/login”)

setStepName(“Step1-Login Page”)

typeKeys("//*[@id=“account_name_text_field”]", “${UserName}”)

waitForNoRequest(“3000”)

clickMouse("//*[@id=‘sign-in’]")

waitForNoRequest(“3000”)

typeKeys("//*[@id=‘password_text_field’]", “${Password}”)

waitForNoRequest(“3000”)

// Step - 2

clickMouseAndWait("//*[@id=“sign-in”]")

setStepName(“Step2-Test Homepage”)

waitForNoRequest(“5000”)