Can you load a Library Script in Scheduled Task using PowerShell?
At present moment you cannot Load Script Library from a PowerShell script. This behavior is by design because such functionality was not implemented for PowerShell scripts.
Enhancement request TF0153509 has been submitted and will be considered for future versions.
Copy/Paste necessary pieces of library script directly to PowerShell Script for scheduled task
Use VBScript instead of PowerShell