[Console]::Error.WriteLine('stderr')
`

			cmdRunner.AddCmdResult("/fake-temp-file.fake-ext", fakesys.FakeCmdResult{
				Stdout:     "stdout",
				Stderr:     "stderr",
				ExitStatus: 0,
			})

			var scriptContent string
			cmdCallback := func() {
				var err error
				scriptContent, err = fs.ReadFileString("/fake-temp-file.fake-ext")
				Expect(err).NotTo(HaveOccurred())
			}
			cmdRunner.SetCmdCallback("/fake-temp-file.fake-ext", cmdCallback)

			stdout, stderr, err := scriptRunner.Run(script)
			Expect(err).NotTo(HaveOccurred())
			Expect(stdout).To(Equal("stdout"))
			Expect(stderr).To(Equal("stderr"))

			Expect(scriptContent).To(Equal(script))
		})

		It("runs a failing Powershell command and returns error", func() {
			cmdRunner.AddCmdResult("/fake-temp-file.fake-ext", fakesys.FakeCmdResult{
				Error: errors.New("failed"),
			})
			_, _, err := scriptRunner.Run("")