You can place the 2 functions in 1 .ps1 file, no need to have 2 files.
You will have to let the PowerShell know about the functions, for that reason you will have to dot-source the .ps1 file(s).
Like this
. ./Set-VMAdvancedConfiguration.ps1
. ./Get-VMAdvancedConfiguration.ps1
Note that there is a blank between the 2 dots.
Now you call the functions as you did in your steps 3) and 4)