Powershell arguments

Post Reply
lah@modulex.com
Newbie
Posts: 1
Joined: Thu Oct 24, 2024 12:25 pm

Powershell arguments

Post by lah@modulex.com »

Hi,

I am new to Powershell and arguments in Execute Command

I have a powershell script which saves a .txt file like this:
# Path to the output file
$outputPath = "C:\Test\Braille\output.txt"

I would like the script to save with dynamic filenames, named after the incoming file:
$outputPath = "C:\Test\Braille\[Job.NameProper].txt"

Can someone show me what my argument line should look like to send this information to my script

My current argument line only contains this:
-Nologo -WindowStyle hidden -executionpolicy bypass -file "C:\Scripts\duxbury.ps1"

Best Regards
Lars
User avatar
magnussandstrom
Advanced member
Posts: 510
Joined: Thu Jul 30, 2020 6:34 pm
Location: Sweden
Contact:

Re: Powershell arguments

Post by magnussandstrom »

Hi Lars, maybe this app will help you out: https://www.enfocus.com/en/appstore/pro ... and-friend
sander
Advanced member
Posts: 308
Joined: Wed Oct 01, 2014 8:58 am
Location: Den Bosch

Re: Powershell arguments

Post by sander »

Post Reply