Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Functions – how to run "correctly"?

$
0
0

Hello – I keep getting stuck on functions. I have a few that I want to run and they aren’t in my profile.

I’ve tried the “dot sourcing method” and it just fails everytime, and it’s probably something I’m doing wrong.

What’s the best way to call a function if it’s not in your profile but you want to run it from the shell you have opened?
What if I want to run a function as a scheduled task?
Is there an “easy” way to take a function and convert it back to a regular powershell script? I’ve tried but failed!

Thanks as always, you all Rock!
Jake


Viewing all articles
Browse latest Browse all 13067

Trending Articles