Signiant Support

How to use Powershell in Signiant components Print


    How do I use Windows Powershell as my Signiant component scripting language?


     The following sample code snippet shows how to run Powershell code in a Signiant command. 

#!"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NonInteractive -executionpolicy bypass -inputformat none #ft=ps1

#Start of script
$path = 'd:\tmp'
$file = 'Works.txt'
new-item -name $file -path $path -itemtype file
# end of script

      The above script creates D:\tmp\Works.txt.