It can be invoked with either the name of a file that contains the SQL text or a string with the SQL text:
PS C:\> format-sqlText "select 42 as num, 'hello World' as txt, sysdate as now from dual"
select 42 as num,
'hello World' as txt,
sysdate as now
from dual
PS C:\> format-sqlText P:\ath\to\sql\file.sql
…
Some optional parameters (which correspond to that of the online service) allow to modify the behavior of the function:
-indentWidth
An integer that specifies the number of characters with which the indentations are made
-identCase
Controls if identifers are transformed to uppercase, lowercase or if the are capitalized (upper, lower or capitalize)
-noReindent
A flag that can be set to prevent the SQL text from re-indented