public void Load() { if (File.Exists(filepath)) { var script = File.ReadAllText(filepath); psScript = new PowerShellScript(name, script); paramNames = SearchParameters(script); } }