tag:help.appveyor.com,2012-11-13:/discussions/problems/4818-errors-in-console-but-build-passesAppVeyor: Discussion 2018-08-25T02:06:49Ztag:help.appveyor.com,2012-11-13:Comment/400911882016-06-12T14:57:16Z2016-06-12T14:57:32ZErrors in console, but build passes<div><p>You are calling it as PowerShell which behaves differently. Try
calling it as:</p>
<pre>
<code>test_script:
- PowerShell .\test.ps1</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/400911882016-06-12T15:57:06Z2016-06-12T15:57:06ZErrors in console, but build passes<div><p>How does ps: differ from PowerShell? I cannot find 'PowerShell'
in the<br>
docs.</p></div>Kenneth Arcieritag:help.appveyor.com,2012-11-13:Comment/400911882016-06-12T16:00:15Z2016-06-12T16:00:15ZErrors in console, but build passes<div><p>PowerShell is <code>powershell.exe</code> - it's not something
AppVeyor-specific.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/400911882016-06-12T16:29:58Z2016-06-12T16:29:58ZErrors in console, but build passes<div><p>The following works:</p>
<p>test_script:<br>
- PowerShell .\test.ps1</p>
<p>Is it possible to use environment variables here? I have some
other power<br>
shell scripts that are not in the root directory that I'd like to
run<br>
during my build.</p></div>Kenneth Arcieritag:help.appveyor.com,2012-11-13:Comment/400911882016-06-12T16:33:31Z2016-06-12T16:33:31ZErrors in console, but build passes<div><p>You would better use relative path to call those scripts.</p></div>Feodor Fitsner