Improving code reusability and batch flow control on scripts
In order to avoid code duplication between scripts and improve reusability and flow control on business-logic, it would be very interesting to have the possibility to make calls between scripts to other existing scripts. I mean, for instance, make calls on a powershell script to another existing powershell scripts:
switch(some-needed-conditional){
"if - A": [Call-to]::Atera-script-1
"if - B": [Call-to]::Atera-script-2
"if - C": [Call-to]::Atera-script-3
}
2
votes
Raul Cruz
shared this idea