Change default script scope to global.

With Microsoft's PowerShell the following:

    Pipeline.Commands.AddScript(script);

is equivalent to:

    Pipeline.Commands.AddScript(script, useLocalScope: false);

Added a reference test for check this behaviour.