Renaming to .ps1; made script instead of function