Powershell Script Examples With Functions In Javascript